GEGELATI
adversarialLearningEnvironment.h
1
36#ifndef ADVERSARIAL_LEARNING_ENVIRONMENT_H
37#define ADVERSARIAL_LEARNING_ENVIRONMENT_H
38
39#include "learn/adversarialEvaluationResult.h"
40#include "learn/learningEnvironment.h"
41#include <vector>
42
43namespace Learn {
64 {
66
67 public:
74 virtual std::shared_ptr<Learn::AdversarialEvaluationResult> getScores()
75 const = 0;
76
85 double getScore() const override
86 {
87 return getScores()->getScoreOf(0);
88 }
89 };
90
91} // namespace Learn
92#endif
Interface for creating a Learning Environment in adversarial mode.
Definition: adversarialLearningEnvironment.h:64
virtual std::shared_ptr< Learn::AdversarialEvaluationResult > getScores() const =0
Computes scores of each root and returns them.
double getScore() const override
Simply returns the first score of the results, allowing compatibility with non adversarial learning a...
Definition: adversarialLearningEnvironment.h:85
Interface for creating a Learning Environment.
Definition: learningEnvironment.h:80
LearningEnvironment()=delete
Delete the default constructor of a LearningEnvironment.
Definition: adversarialEvaluationResult.h:45