#include <MOGEPAlg.h>


Public Member Functions | |
| MOGEPAlg (const std::string &path, const std::vector< IDataSample > trainingSet=std::vector< IDataSample >(), const std::vector< IDataSample > testingSet=std::vector< IDataSample >()) | |
| ~MOGEPAlg () | |
| virtual void | readConfig (const std::string &path) |
| virtual void | readConfig (const ConfigArgs &cfg) |
| bool | isOptimum () |
| void | updateArchive (const std::string &path) |
| void | updateHallOfFame (const u_short &testRun) |
| std::vector< std::vector < MOIndividualType * > > | getMOHallOfFame () const |
| bool | isFrontEvolution () const |
| u_short | getArchiveGen () const |
| std::string | getArchivePath () const |
| void | setFrontEvolution (const bool &frontEvolution) |
| void | setArchiveGen (const u_short &gen) |
| void | setArchivePath (const std::string &path) |
Public Attributes | |
| bool | override |
Private Types | |
| typedef MOPopulation::comparator | Comparator |
| typedef MOPopulation::ind_type | MOIndividualType |
| typedef MOIndividualType::chromo_type | IChromoType |
| typedef MOIndividualType::ret_type | IRetType |
| typedef MOIndividualType::base_type | IBaseType |
| typedef MOIndividualType::data_type | IDataSample |
Private Member Functions | |
| virtual void | logPopulation (const size_t &genNum, const size_t &runNum) |
| void | recordPopulation (const size_t &genNum, const size_t &runNum) |
| void | runEnd (const size_t &run, const bool &breaked=false) |
| void | genEnd (const size_t &run, const size_t &gen, const bool &breaked=false) |
Private Attributes | |
| std::vector< std::vector < MOIndividualType > > | _mo_hallOfFame |
| u_short | _archiveGen |
| bool | _frontEvolution |
| std::string | _archivePath |
| std::vector< std::vector < typename MOIndividualType::base_type > > | _best_worst |
typedef MOPopulation::comparator GEP::MOGEPAlg< MOPopulation, MOStats >::Comparator [private] |
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
typedef MOIndividualType::base_type GEP::MOGEPAlg< MOPopulation, MOStats >::IBaseType [private] |
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
typedef MOIndividualType::chromo_type GEP::MOGEPAlg< MOPopulation, MOStats >::IChromoType [private] |
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
typedef MOIndividualType::data_type GEP::MOGEPAlg< MOPopulation, MOStats >::IDataSample [private] |
The best individuals (with maximum fitness) recorded over the test runs.
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
typedef MOIndividualType::ret_type GEP::MOGEPAlg< MOPopulation, MOStats >::IRetType [private] |
typedef MOPopulation::ind_type GEP::MOGEPAlg< MOPopulation, MOStats >::MOIndividualType [private] |
| GEP::MOGEPAlg< MOPopulation, MOStats >::MOGEPAlg | ( | const std::string & | path, | |
| const std::vector< IDataSample > | trainingSet = std::vector<IDataSample>(), |
|||
| const std::vector< IDataSample > | testingSet = std::vector<IDataSample>() | |||
| ) | [inline] |
| GEP::MOGEPAlg< MOPopulation, MOStats >::~MOGEPAlg | ( | ) | [inline] |
| void GEP::MOGEPAlg< MOPopulation, Stats >::genEnd | ( | const size_t & | run, | |
| const size_t & | gen, | |||
| const bool & | breaked = false | |||
| ) | [inline, private, virtual] |
Performs operations at the end of any generation.
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
| u_short GEP::MOGEPAlg< MOPopulation, MOStats >::getArchiveGen | ( | ) | const [inline] |
| std::string GEP::MOGEPAlg< MOPopulation, MOStats >::getArchivePath | ( | ) | const [inline] |
| std::vector< std::vector<MOIndividualType*> > GEP::MOGEPAlg< MOPopulation, MOStats >::getMOHallOfFame | ( | ) | const [inline] |
| bool GEP::MOGEPAlg< MOPopulation, MOStats >::isFrontEvolution | ( | ) | const [inline] |
| bool GEP::MOGEPAlg< MOPopulation, Stats >::isOptimum | ( | ) | [inline, virtual] |
Returns true if optimum defined by _optimum variable, is met.
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
| void GEP::MOGEPAlg< MOPopulation, Stats >::logPopulation | ( | const size_t & | genNum, | |
| const size_t & | runNum | |||
| ) | [inline, private, virtual] |
Performs logging of the Population to Util::verbose() console.
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
| void GEP::MOGEPAlg< MOPopulation, Stats >::readConfig | ( | const ConfigArgs & | cfg | ) | [inline, virtual] |
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
| void GEP::MOGEPAlg< MOPopulation, Stats >::readConfig | ( | const std::string & | path | ) | [inline, virtual] |
Parses config file for fields specific to the Population
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
| void GEP::MOGEPAlg< MOPopulation, Stats >::recordPopulation | ( | const size_t & | genNum, | |
| const size_t & | runNum | |||
| ) | [inline, private, virtual] |
Performs recording of the population every _recordInterval generation.
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
| void GEP::MOGEPAlg< MOPopulation, Stats >::runEnd | ( | const size_t & | run, | |
| const bool & | breaked = false | |||
| ) | [inline, private, virtual] |
Performs operations at the end of any run.
Reimplemented from GEP::GEPAlg< MOPopulation, MOStats >.
| void GEP::MOGEPAlg< MOPopulation, MOStats >::setArchiveGen | ( | const u_short & | gen | ) | [inline] |
| void GEP::MOGEPAlg< MOPopulation, MOStats >::setArchivePath | ( | const std::string & | path | ) | [inline] |
| void GEP::MOGEPAlg< MOPopulation, MOStats >::setFrontEvolution | ( | const bool & | frontEvolution | ) | [inline] |
| void GEP::MOGEPAlg< MOPopulation, Stats >::updateArchive | ( | const std::string & | path | ) | [inline] |
| void GEP::MOGEPAlg< MOPopulation, Stats >::updateHallOfFame | ( | const u_short & | testRun | ) | [inline] |
u_short GEP::MOGEPAlg< MOPopulation, MOStats >::_archiveGen [private] |
The number of generations interval for archivization; 0 for none;
std::string GEP::MOGEPAlg< MOPopulation, MOStats >::_archivePath [private] |
std::vector<std::vector<typename MOIndividualType::base_type> > GEP::MOGEPAlg< MOPopulation, MOStats >::_best_worst [private] |
bool GEP::MOGEPAlg< MOPopulation, MOStats >::_frontEvolution [private] |
std::vector< std::vector<MOIndividualType> > GEP::MOGEPAlg< MOPopulation, MOStats >::_mo_hallOfFame [private] |
| bool GEP::MOGEPAlg< MOPopulation, MOStats >::override |
1.6.1