rlcard icon indicating copy to clipboard operation
rlcard copied to clipboard

执行run_rl.py报错

Open skgdz opened this issue 1 year ago • 2 comments

部署rlcard 后 尝试运行run_rl.py 报错 麻烦问一下 该如何处理 root@ip:~/rlcard/examples# python3 run_rl.py --> Running on the CPU

Logs saved in experiments/leduc_holdem_dqn_result/ Traceback (most recent call last): File "run_rl.py", line 181, in train(args) File "run_rl.py", line 92, in train tournament( File "/root/rlcard/rlcard/utils/utils.py", line 210, in tournament _, _payoffs = env.run(is_training=False) File "/root/rlcard/rlcard/envs/env.py", line 149, in run next_state, next_player_id = self.step(action, self.agents[player_id].use_raw) AttributeError: 'DQNAgent' object has no attribute 'use_raw'

skgdz avatar Jun 10 '23 17:06 skgdz

@skgdz It is a bug. I have fixed it in the latest commit.

daochenzha avatar Jun 22 '23 16:06 daochenzha

OK thank you

skgdz avatar Jul 28 '23 02:07 skgdz