GEGELATI

Loading...
Searching...
No Matches
mapElitesDefaultDescriptors.h
1
2#ifndef MAP_ELITES_DEFAULT_DESCRIPTORS_H
3#define MAP_ELITES_DEFAULT_DESCRIPTORS_H
4
5#include "selector/mapElites/mapElitesDescriptor.h"
6#include "tpg/tpgGraph.h"
7
8namespace Selector {
9
10 namespace MapElites {
11
12 namespace DefaultDescriptors {
13
24 class ActionValues : public MapElitesDescriptor
25 {
26 public:
30 virtual void initDescriptor(const TPG::TPGGraph& graph,
31 const Learn::LearningEnvironment&
32 learningEnvironment) override;
33
37 virtual std::string getName() const override;
38
42 virtual void extractMetricsStep(
43 std::vector<double>& metrics, const TPG::TPGVertex* agent,
44 std::vector<double> actionValues,
45 const Learn::LearningEnvironment& learningEnvironment)
46 const override;
47
51 virtual void extractMetricsEpisode(
52 std::vector<double>& metrics, const TPG::TPGVertex* agent,
53 size_t nbStepsExecuted,
54 const Learn::LearningEnvironment& learningEnvironment)
55 const override;
56 };
57
58 }; // namespace DefaultDescriptors
59 }; // namespace MapElites
60}; // namespace Selector
61
62#endif // MAP_ELITES_DEFAULT_DESCRIPTORS_H
Learn::LearningEnvironment
Interface for creating a Learning Environment.
Definition learningEnvironment.h:81
Selector::MapElites::DefaultDescriptors::ActionValues
Definition mapElitesDefaultDescriptors.h:25
Selector::MapElites::DefaultDescriptors::ActionValues::initDescriptor
virtual void initDescriptor(const TPG::TPGGraph &graph, const Learn::LearningEnvironment &learningEnvironment) override
Specialisation of initDescriptor.
Definition mapElitesDefaultDescriptors.cpp:5
Selector::MapElites::DefaultDescriptors::ActionValues::getName
virtual std::string getName() const override
Specialisation of getName.
Definition mapElitesDefaultDescriptors.cpp:15
Selector::MapElites::DefaultDescriptors::ActionValues::extractMetricsStep
virtual void extractMetricsStep(std::vector< double > &metrics, const TPG::TPGVertex *agent, std::vector< double > actionValues, const Learn::LearningEnvironment &learningEnvironment) const override
Specialisation of extractMetricsStep.
Definition mapElitesDefaultDescriptors.cpp:21
Selector::MapElites::DefaultDescriptors::ActionValues::extractMetricsEpisode
virtual void extractMetricsEpisode(std::vector< double > &metrics, const TPG::TPGVertex *agent, size_t nbStepsExecuted, const Learn::LearningEnvironment &learningEnvironment) const override
Specialisation of extractMetricsEpisode.
Definition mapElitesDefaultDescriptors.cpp:32
Selector::MapElites::MapElitesDescriptor
Abstract class representing a descriptor for Map Elites selection.
Definition mapElitesDescriptor.h:20
TPG::TPGGraph
Class for storing a Tangled-Program-Graph.
Definition tpgGraph.h:58
TPG::TPGVertex
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
Selector
Definition mapElitesArchiveLogger.h:45