CBatchEpisodeUpdate Class Reference
Class for doing batch
updates during the learning trial. More...
#include <cepisodehistory.h>
Inheritance diagram for CBatchEpisodeUpdate:
List of all
members.
Detailed Description
Class for doing batch updates during the learning trial.
After each episode all the episodes from the past (which are in
the given episode history) are be showed to the listener object
again. This can improve learning specially for TD-Learning
algorithms.
Each time a newEpisode event occurs the episodes in the history
are shown to the given listener, so te batch update object must be
added to the agents listener. This is used in connection with an
agent logger which logs the current learning trial.
Constructor & Destructor Documentation
| |
Creates a batch update object for the specified listener with
the specified episode history.
|
|
CBatchEpisodeUpdate::~CBatchEpisodeUpdate
|
( |
|
) |
|
|
Member Function Documentation
| virtual void
CBatchEpisodeUpdate::newEpisode
|
( |
|
) |
[virtual] |
|
| |
Simulates all epsiodes from the history to the listener.
Just calls the simulate all episodes method of the interface
CEpisodeHistory.
Reimplemented from CSemiMDPListener.
|
| virtual void
CBatchEpisodeUpdate::simulateAllEpisodes
|
( |
CSemiMDPListener *
|
listener |
) |
[virtual] |
|
| |
simulates all episodes to the listener
|
| virtual void
CBatchEpisodeUpdate::simulateEpisode
|
( |
int |
episode,
|
|
|
CSemiMDPListener *
|
listener |
|
) |
[virtual] |
|
| |
simulates the requested Episode to the
listener
|
| void
CBatchEpisodeUpdate::simulateNRandomEpisodes
|
( |
int |
numEpisodes,
|
|
|
CSemiMDPListener *
|
listener |
|
) |
|
|
| |
simulates numEpisodes randomly choosen Episodes to the
listener.
|
Member Data Documentation
| |
listener to show the episodes
|
| |
episode history containing all episodes
|
The documentation for this class was generated from the following
file:
|