Selection class that will do a selection with a truncation. This is the classic selection methods used in the earliest works of TPGs.
More...
|
| | TruncationSelector (std::shared_ptr< TPG::TPGGraph > graph, const Learn::LearningParameters ¶ms) |
| | Constructor for Selector.
|
| |
| virtual void | doSelection (std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results, Mutator::RNG &rng) override |
| | override of doSelection method
|
| |
| | 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 std::shared_ptr< SelectionMetrics > | createSelectionMetrics () |
| |
| 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 const SelectionContext & | updateContext () |
| | Update the SelectionContext structure and return it.
|
| |
| virtual void | updateAfterPopulate () |
| | Method to call at the end of TPGMutator::populateTPG.
|
| |
Selection class that will do a selection with a truncation. This is the classic selection methods used in the earliest works of TPGs.