mlpy.planners.IPlanner¶
-
class
mlpy.planners.
IPlanner
(explorer=None)[source]¶ Bases:
mlpy.modules.UniqueModule
The planner interface class.
Parameters: explorer : Explorer
The exploration strategy to employ.
Attributes
mid
The module’s unique identifier. Methods
activate_exploration
()Turn the explorer on. choose_action
(state[, use_policy])Choose the optimal action for a state according to the current policy. create_policy
([func])Creates a policy (i.e., a state-action association). deactivate_exploration
()Turn the explorer off. get_best_action
(state)Choose the best next action for the agent to take. init
()Initialize the planner. load
(filename)Load the state of the module from file. plan
()Plan for the optimal policy. save
(filename)Save the current state of the module to file. visualize
()Visualize of the planning data.