GEGELATI

Loading...
Searching...
No Matches
laPolicyStatsLogger.h
1
36#ifndef LA_POLICY_STATS_LOGGER_H
37#define LA_POLICY_STATS_LOGGER_H
38
39#include "log/laLogger.h"
40#include "tpg/policyStats.h"
41#include "tpg/tpgVertex.h"
42
43 namespace Log {
51 class LAPolicyStatsLogger : public LALogger
52 {
53 private:
61 const TPG::TPGVertex* lastBestRoot = nullptr;
62
64 uint64_t generationNumber = 0;
65
66 public:
74 LAPolicyStatsLogger(Learn::LearningAgent& la,
75 std::ostream& out = std::cout)
76 : LALogger(la, out){};
77
79 void logNewGeneration(uint64_t& generationNumber) override;
80
82 void logHeader() override {
83 // nothing to log
84 };
85
87 void logAfterPopulateTPG() override {
88 // nothing to log
89 };
90
92 void logAfterDecimate() override;
93
95 void logAfterValidate(
96 std::multimap<std::shared_ptr<Learn::EvaluationResult>,
97 const TPG::TPGVertex*>& results) override {
98 // nothing to log
99 };
100
102 void logEndOfTraining() override {
103 // nothing to log
104 };
105
107 void logAfterEvaluate(
108 std::multimap<std::shared_ptr<Learn::EvaluationResult>,
109 const TPG::TPGVertex*>& results) override {
110 // nothing to log
111 };
112 };
113}; // namespace Log
114
115#endif // !LA_POLICY_STATS_LOGGER_H
Learn::LearningAgent
Class used to control the learning steps of a TPGGraph within a given LearningEnvironment.
Definition learningAgent.h:64
Log::LALogger
Learning Agent logger class that will be called during LearningAgent executions.
Definition laLogger.h:65
Log::LAPolicyStatsLogger
LALogger specialization using logging the PolicyStats information on the best root.
Definition laPolicyStatsLogger.h:52
Log::LAPolicyStatsLogger::logAfterValidate
void logAfterValidate(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results) override
Inherited from LALogger.
Definition laPolicyStatsLogger.h:95
Log::LAPolicyStatsLogger::logAfterEvaluate
void logAfterEvaluate(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results) override
Inherited from LALogger.
Definition laPolicyStatsLogger.h:107
Log::LAPolicyStatsLogger::logNewGeneration
void logNewGeneration(uint64_t &generationNumber) override
Inherited from LALogger.
Definition laPolicyStatsLogger.cpp:40
Log::LAPolicyStatsLogger::logAfterPopulateTPG
void logAfterPopulateTPG() override
Inherited from LALogger.
Definition laPolicyStatsLogger.h:87
Log::LAPolicyStatsLogger::logAfterDecimate
void logAfterDecimate() override
Inherited from LALogger.
Definition laPolicyStatsLogger.cpp:45
Log::LAPolicyStatsLogger::logHeader
void logHeader() override
Inherited from LALogger.
Definition laPolicyStatsLogger.h:82
Log::LAPolicyStatsLogger::logEndOfTraining
void logEndOfTraining() override
Inherited from LALogger.
Definition laPolicyStatsLogger.h:102
Log::LAPolicyStatsLogger::LAPolicyStatsLogger
LAPolicyStatsLogger(Learn::LearningAgent &la, std::ostream &out=std::cout)
Main constructor for the LAPolicyStatsLogger.
Definition laPolicyStatsLogger.h:74
TPG::TPGVertex
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
Log
Definition cycleDetectionLALogger.h:38