Collector no longer has preprocess_fn
#1203
-
In the latest update to Tianshou 1.1.0 it looks like the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I think after #1196 you can set |
Beta Was this translation helpful? Give feedback.
-
Hi @destin-v . It was removed a long time ago, I think (probably as part of 1.0.0) since it was unused in the codebase and increased the complexity of the already very complicated Collector. Just now we have finished work on extending the Collector with hooks, it's already merged on master. I'm about to merge some internal improvements in #1214 , which however don't affect the public interfaces. There's now a dedicated mechanism for processing batches at step and at episode completion by passing hooks to the collector. Have a look at the docstrings and examples there pls. We will add more documentation and tutorials on these new features with the next release. So for your experiments, I suggest you move to the version currently on master |
Beta Was this translation helpful? Give feedback.
-
Okay, sounds good. I would recommend that the Cheat Sheet remove the documentation for |
Beta Was this translation helpful? Give feedback.
I think after #1196 you can set
on_episode_done_hook
oron_step_hook
inCollector
to achieve this.