DQN playing SpaceInvadersNoFrameskip-v4 from https://github.com/sgoodfriend/rl-algo-impls/tree/1d4094fbcc9082de7f53f4348dd4c7c354152907
0016a0a
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 |