ray/rllib/examples/env/utils/interfaces.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
554 B
Python
Raw Normal View History

##########
# Contribution by the Center on Long-Term Risk:
# https://github.com/longtermrisk/marltoolbox
##########
from abc import ABC, abstractmethod
class InfoAccumulationInterface(ABC):
@abstractmethod
def _init_info(self):
raise NotImplementedError()
@abstractmethod
def _reset_info(self):
raise NotImplementedError()
@abstractmethod
def _get_episode_info(self):
raise NotImplementedError()
@abstractmethod
def _accumulate_info(self, *args, **kwargs):
raise NotImplementedError()