mlpy.learners.online.IOnlineLearner¶
-
class
mlpy.learners.online.
IOnlineLearner
(filename=None)[source]¶ Bases:
mlpy.learners.ILearner
The online learner base class.
The learning step is performed during the episode or iteration after each step.
Parameters: filename : str, optional
The name of the file to save the learner state to after each iteration. If None is given, the learner state is not saved. Default is None.
Attributes
mid
The module’s unique identifier. type
This learner is of type online. Methods
choose_action
(state)Choose the next action execute
(experience)Execute learning specific updates. learn
()Learn a policy from the experience. load
(filename)Load the state of the module from file. reset
(t, **kwargs)Reset reinforcement learner. save
(filename)Save the current state of the module to file.