Use evaluate.py to run self-play or competitive matches between different agents using the generated evaluation data. The evaluation environment and methods are compatible with DouZero.
Arguments:
--landlord: The agent playing as the Landlord. Options: random, rlcard, douzero, perfectdou, or a direct path to a pre-trained model.--landlord_up: The agent playing as LandlordUp (the player before the Landlord). Options: random, rlcard, douzero, perfectdou, or a path to a model.--landlord_down: The agent playing as LandlordDown (the player after the Landlord). Options: random, rlcard, douzero, perfectdou, or a path to a model.--eval_data: The path to the pickle file containing the evaluation data generated in Step 1.--num_workers: The number of subprocesses to use for evaluation.
Example: Evaluate PerfectDou as Landlord against DouZero agents:
python3 evaluate.py --landlord perfectdou --landlord_up douzero --landlord_down douzero