PPO playing MicrortsDefeatCoacAIShaped-v3 from https://github.com/sgoodfriend/rl-algo-impls/tree/f7c6f26745a35b21529f65cf3c71dfd6bbf33919
0589ae3
from abc import ABC | |
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 | |