PPO playing starpilot from https://github.com/sgoodfriend/rl-algo-impls/tree/6394df4b9caa5a7e72f31946dda5a3f36e0f3c09
264b079
| 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 |