标签:directory ted res dep 直接 reason sum moni eve
原报错代码部分:
env.monitor.start(monitor_path,
resume=True,
video_callable=lambda count: count % record_video_every == 0)
reason:
env.monitor is deprecated. Wrap your env with gym.wrappers.Monitor to record data.
所以改为 env = Monitor()
注意:1.加from gym.wrappers import monitor
2.Monitor()内部参数要改为Monitor(env, directory=monitor_path,其他直接写)
AttributeError: 'TimeLimit' object has no attribute 'monitor'
标签:directory ted res dep 直接 reason sum moni eve
原文地址:https://www.cnblogs.com/Lmengzi/p/9346788.html