#include <learningenv.h>
Public Types | |
enum | problemtypes |
Public Methods | |
LearningEAEnv () | |
LearningEAEnv (const PatternSet &trainset, const PatternSet &evaluationset, const PatternSet &reportset, StringMap ¶ms) | |
void | setProblemType (int pt) |
virtual void | addFeaturesTo (Genome &genome) const |
virtual void | cycle_report (OStream &log, OStream &out) |
virtual double | evaluateg (const Individual &genome) |
virtual DataOStream & | operator>> (DataOStream &out) const |
virtual void | check () const |
Protected Methods | |
void | permutate () |
void | splitTrainData () |
The environment's main attribute is the dataset used for training.
This class is currently designed mainly for using a local search in addition to the evolutionary learning of the neural network topology. Whether or not the environment uses local training depends *on the parameters.
Definition at line 45 of file learningenv.h.
|
Problem types.
Definition at line 72 of file learningenv.h. |
|
Dummy constructor, shouldn't be used (results in runtime error). Dummy. For some reason, we have to have a dummy constructor, so this is what we get... Definition at line 62 of file learningenv.cc. |
|
Primary constructor. Most of the parameters are passed in a string map.
Definition at line 95 of file learningenv.cc. References splitTrainData(). |
|
Implementation for EAEnvironment.
Definition at line 142 of file learningenv.cc. |
|
Implementation for Object.
Definition at line 401 of file learningenv.cc. |
|
Implementation for EAEnvironment.
Definition at line 282 of file learningenv.cc. |
|
Implementation for EAEnvironment. Implementation for EAEnvironment. Trains the individual with the training set and then evaluates the it with the evaluation set. If early stopping is enabled, the training set is further divided into an actual training set and termination set. If permutation of training patterns is enabled, the patterns are shuffled before division into actual training set and termination set. Prints statistics if they are enabled.
Definition at line 210 of file learningenv.cc. References permutate(). |
|
Implementation for Object.
Definition at line 386 of file learningenv.cc. |
|
Permutates and redivides the mTrainData into mTrainSet and mEvaluationSet.
Definition at line 170 of file learningenv.cc. References splitTrainData(). Referenced by evaluateg(). |
|
Sets problem type to be a classification task or a function approximation task. Default is CLASSIFICATION unless there is only one output in which case the default is CLASSIFICATION2.
Definition at line 63 of file learningenv.h. |
|
Resplit the dataset into training set and evaluation set. The training set is used for training the neural network, and evaluation set for evaluating the fitness after training. Definition at line 187 of file learningenv.cc. Referenced by LearningEAEnv(), and permutate(). |