PPO playing procgen-starpilot-easy from https://github.com/sgoodfriend/rl-algo-impls/tree/21ee1ab96a186676e5ed2f8c3185902f7c7bca7a
b1aa132 | from abc import ABC, abstractmethod | |
| class Callback(ABC): | |
| def __init__(self) -> None: | |
| super().__init__() | |
| self.timesteps_elapsed = 0 | |
| def on_step(self, timesteps_elapsed: int = 1) -> bool: | |
| self.timesteps_elapsed += timesteps_elapsed | |
| return True |