mirror of
https://github.com/vale981/ray
synced 2025-03-06 18:41:40 -05:00
23 lines
554 B
Python
23 lines
554 B
Python
##########
|
|
# 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()
|