| import abc | |
| from typing import Dict | |
| class BasePolicy(abc.ABC): | |
| def infer(self, obs: Dict) -> Dict: | |
| """Infer actions from observations.""" | |
| def reset(self) -> None: | |
| """Reset the policy to its initial state.""" | |
| pass | |
| import abc | |
| from typing import Dict | |
| class BasePolicy(abc.ABC): | |
| def infer(self, obs: Dict) -> Dict: | |
| """Infer actions from observations.""" | |
| def reset(self) -> None: | |
| """Reset the policy to its initial state.""" | |
| pass | |