GEGELATI

Loading...
Searching...
No Matches
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
43 namespace Learn {
63 class AdversarialLearningEnvironment : public LearningEnvironment
64 {
65 using LearningEnvironment::LearningEnvironment;
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
Learn::AdversarialLearningEnvironment
Interface for creating a Learning Environment in adversarial mode.
Definition adversarialLearningEnvironment.h:64
Learn::AdversarialLearningEnvironment::getScores
virtual std::shared_ptr< Learn::AdversarialEvaluationResult > getScores() const =0
Computes scores of each root and returns them.
Learn::AdversarialLearningEnvironment::getScore
double getScore() const override
Simply returns the first score of the results, allowing compatibility with non adversarial learning a...
Definition adversarialLearningEnvironment.h:85
Learn::LearningEnvironment
Interface for creating a Learning Environment.
Definition learningEnvironment.h:81
Learn::LearningEnvironment::LearningEnvironment
LearningEnvironment()=delete
Delete the default constructor of a LearningEnvironment.
Learn
Definition adversarialEvaluationResult.h:45