Source code for pfrl.explorer
from abc import ABCMeta, abstractmethod
[docs]class Explorer(object, metaclass=ABCMeta):
"""Abstract explorer."""
[docs] @abstractmethod
def select_action(self, t, greedy_action_func, action_value=None):
"""Select an action.
Args:
t: current time step
greedy_action_func: function with no argument that returns an action
action_value (ActionValue): ActionValue object
"""
raise NotImplementedError()