|
| | MapElitesSelector (std::shared_ptr< TPG::TPGGraph > graph, const Learn::LearningParameters ¶ms) |
| | Constructor for Selector.
|
| |
| virtual std::shared_ptr< const MapElitesArchive > | getMapElitesArchiveAt (std::shared_ptr< const MapElitesDescriptor > descriptor) |
| | Get the archive corresponding to a given descriptor.
|
| |
|
virtual const std::map< std::shared_ptr< const MapElitesDescriptor >, std::shared_ptr< MapElitesArchive > > & | getMapElitesArchives () |
| | Get all the map elites archives.
|
| |
| virtual std::shared_ptr< SelectionMetrics > | createSelectionMetrics () override |
| |
| virtual std::shared_ptr< const MapElitesArchive > | addArchiveFromDescriptor (size_t nbBins, std::shared_ptr< const MapElitesDescriptor > descriptor, Learn::LearningEnvironment &le) |
| | Add an archive for a given descriptor.
|
| |
| virtual std::shared_ptr< const MapElitesArchive > | addCvtArchiveFromDescriptor (size_t nbCentroids, std::shared_ptr< const MapElitesDescriptor > descriptor, Learn::LearningEnvironment &le, Mutator::RNG &rng, size_t nbIterationInit=300, size_t nbDotsInit=1000, double a1=0.5, double b1=0.5, double a2=0.5, double b2=0.5) |
| | Add a CVT archive for a given descriptor.
|
| |
| virtual void | doSelection (std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results, Mutator::RNG &rng) override |
| | override of doSelection method
|
| |
| virtual const SelectionContext & | updateContext () override |
| | Specialization of updateContext for MapElites purposes.
|
| |
| | Selector (std::shared_ptr< TPG::TPGGraph > graph, const Learn::LearningParameters ¶ms) |
| | Constructor for Selector.
|
| |
| virtual void | launchSelection (std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results, Mutator::RNG &rng) |
| | This method execute the doSelection method.
|
| |
| virtual void | keepBestPolicy () |
| | This method keeps only the bes tRoot policy in the TPGGraph.
|
| |
| virtual void | updateEvaluationRecords (const std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results) |
| | Update the bestRoot and resultsPerRoot attributes.
|
| |
| virtual void | updateResultsPerRoot (const std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results) |
| | Update the resultsPerRoot.
|
| |
| virtual void | updateBestRoot (const std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results) |
| | Update the bestRoot attribute.
|
| |
| virtual const std::pair< const TPG::TPGVertex *, std::shared_ptr< Learn::EvaluationResult > > & | getBestRoot () const |
| | Get the best root TPG::Vertex encountered since the last init.
|
| |
| virtual std::shared_ptr< TPG::TPGGraph > | getGraph () |
| | Getter for the TPGGraph built by the LearningAgent.
|
| |
| virtual void | forgetPreviousResults () |
| | This method resets the previous registered scores per root.
|
| |
|
virtual const std::map< const TPG::TPGVertex *, std::shared_ptr< Learn::EvaluationResult > > & | getResultsPerRoot () const |
| | Return the resultsPerRoot map.
|
| |
| virtual void | updateAfterPopulate () |
| | Method to call at the end of TPGMutator::populateTPG.
|
| |
Selection class that will do a selection with a Map Elites algorithm.
The different archives are stored in the mapEliteArchives attribute, each archive corresponding to a descriptor.