mlpy.experiments.Experiment

class mlpy.experiments.Experiment(env)[source]

Bases: object

The experiment class.

An experiment sets up an agent in an environment and runs until the environment is considered to have completed. This can be the case when all agents acting in the environment have reached their goal state.

An experiment can consist of multiple episodes and rests itself at the end of each episode.

Parameters:

env : Environment

The environment in which to run the agent(s).

Methods

enter() Enter the experiment.
exit() Exit the experiment.
reset() Reset the experiment.
run() Run the experiment.
update() Update all modules during the program loop.