Shmuma / ptan

PyTorch Agent Net: reinforcement learning toolkit for pytorch
MIT License
530 stars 164 forks source link

AttributeError: module 'ignite' has no attribute 'EndOfEpisodeHandler' - still exists in ptan version 0.7 #53

Open botradingblog1 opened 6 months ago

botradingblog1 commented 6 months ago

Hi Shmuma, Thanks for putting together this library.

I'm running Python: 3.8 ptan: 0.7 pytorch-ignite: 0.4.2

The error I'm getting is listed below. In this issue (https://github.com/Shmuma/ptan/issues/41) you mentioned that the EndOfEpisodeHandler issue was fixed in ptan version 0.7 but I'm running it and I still have this issue. Any advice?

Thanks!

Chris

Traceback (most recent call last): File "train_model.py", line 114, in tb = common.setup_ignite(engine, exp_source, f"simple-{args.run}", File "C:\dev\trading\drl-stock-trading-1\lib\common.py", line 76, in setup_ignite handler = ptan.ignite.EndOfEpisodeHandler(exp_source, subsample_end_of_episode=100) AttributeError: module 'ignite' has no attribute 'EndOfEpisodeHandler'