GEGELATI

Loading...
Searching...
No Matches
classificationSelector.h
1
2
3#ifndef CLASSIFICATION_SELECTOR_H
4#define CLASSIFICATION_SELECTOR_H
5
6#include "selector/selector.h"
7
8 namespace Selector {
9
13 class ClassificationSelector : public Selector
14 {
15 protected:
17 uint64_t nbActions;
18
19 public:
28 ClassificationSelector(std::shared_ptr<TPG::TPGGraph> graph,
29 const Learn::LearningParameters& params,
30 uint64_t nbActions)
31 : Selector{graph, params}, nbActions{nbActions}
32 {
33 }
34
40 virtual std::shared_ptr<SelectionMetrics> createSelectionMetrics()
41 override;
42
70 virtual void doSelection(
71 std::multimap<std::shared_ptr<Learn::EvaluationResult>,
72 const TPG::TPGVertex*>& results,
73 Mutator::RNG& rng) override;
74 };
75}; // namespace Selector
76
77#endif // CLASSIFICATION_SELECTOR_H
Mutator::RNG
Definition rng.h:52
Selector::ClassificationSelector
Specialization of the selection class for classification purposes.
Definition classificationSelector.h:14
Selector::ClassificationSelector::doSelection
virtual void doSelection(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results, Mutator::RNG &rng) override
Specialization of the doSelection method for classification purposes.
Definition classificationSelector.cpp:12
Selector::ClassificationSelector::ClassificationSelector
ClassificationSelector(std::shared_ptr< TPG::TPGGraph > graph, const Learn::LearningParameters &params, uint64_t nbActions)
Constructor for ClassificationSelector.
Definition classificationSelector.h:28
Selector::ClassificationSelector::nbActions
uint64_t nbActions
Number of actions in the LearningEnvironment.
Definition classificationSelector.h:17
Selector::ClassificationSelector::createSelectionMetrics
virtual std::shared_ptr< SelectionMetrics > createSelectionMetrics() override
Definition classificationSelector.cpp:7
Selector::Selector::params
const Learn::LearningParameters & params
Parameters for the selection.
Definition selector.h:26
Selector::Selector::graph
std::shared_ptr< TPG::TPGGraph > graph
TPGGraph on which the TPGVertex can be selected or deleted.
Definition selector.h:23
TPG::TPGVertex
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
Selector
Definition mapElitesArchiveLogger.h:45
Learn::LearningParameters
Structure for simplifying the transmission of LearningParameters to functions.
Definition learningParameters.h:55