|
| | MapElitesSelectionMetrics (std::vector< std::shared_ptr< const MapElitesDescriptor > > descriptors) |
| | Default constructor of MapEliteselectionMetrics with a vector of descriptors.
|
| |
| | MapElitesSelectionMetrics (double score, const std::map< std::shared_ptr< const MapElitesDescriptor >, std::vector< double > > &mapDescriptors) |
| | Constructor of MapEliteselectionMetrics with a vector of scores.
|
| |
| | MapElitesSelectionMetrics (double score) |
| | Constructor of MapEliteselectionMetrics with a vector of scores.
|
| |
|
const std::map< std::shared_ptr< const MapElitesDescriptor >, std::vector< double > > & | getMapDescriptors () const |
| | Get a const ref to the scorePerClass attribute.
|
| |
| void | initMetrics (const TPG::TPGVertex *agent, const Learn::LearningEnvironment &learningEnvironment) override |
| | Specialization of the initialisation of the metrics.
|
| |
| void | extractMetricsStep (const TPG::TPGVertex *agent, std::vector< double > actionValues, const Learn::LearningEnvironment &learningEnvironment) override |
| | Specialization of the extraction of the metrics at the end of an episode.
|
| |
| void | extractMetricsEpisode (const TPG::TPGVertex *agent, size_t nbStepsExecuted, const Learn::LearningEnvironment &learningEnvironment) override |
| | Specialization of the extraction of the metrics at the end of an episode.
|
| |
| virtual void | weightedSum (std::shared_ptr< SelectionMetrics > other, size_t nbEvaluation, size_t nbEvaluationOther) override |
| | Specialization of weightedSum method to add the score per class and nbEvalPerClass.
|
| |
|
| SelectionMetrics ()=default |
| | Default constructor.
|
| |
|
virtual | ~SelectionMetrics ()=default |
| | Default destructor.
|
| |
| | SelectionMetrics (double score, double utility=0) |
| | Constructor with score and utility initialization.
|
| |
| virtual double | getScore () const |
| |
| virtual double | getUtility () const |
| |
Class to extract metrics from either the agent or the environment.
This metrics can be used to specify the selection of the selector. This class does not implement any metrics, it need to be override by the different selection methods.