ptan icon indicating copy to clipboard operation
ptan copied to clipboard

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

Open botradingblog1 opened this issue 9 months ago • 0 comments

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'

botradingblog1 avatar May 13 '24 11:05 botradingblog1