GEGELATI
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
43namespace Log {
52 {
53 private:
61 const TPG::TPGVertex* lastBestRoot = nullptr;
62
64 uint64_t generationNumber;
65
66 public:
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
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
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
Class used to control the learning steps of a TPGGraph within a given LearningEnvironment.
Definition: learningAgent.h:63
Learning Agent logger class that will be called during LearningAgent executions.
Definition: laLogger.h:64
LALogger specialization using logging the PolicyStats information on the best root.
Definition: laPolicyStatsLogger.h:52
void logAfterValidate(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results) override
Inherited from LALogger.
Definition: laPolicyStatsLogger.h:95
void logAfterEvaluate(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results) override
Inherited from LALogger.
Definition: laPolicyStatsLogger.h:107
void logNewGeneration(uint64_t &generationNumber) override
Inherited from LALogger.
Definition: laPolicyStatsLogger.cpp:40
void logAfterPopulateTPG() override
Inherited from LALogger.
Definition: laPolicyStatsLogger.h:87
void logAfterDecimate() override
Inherited from LALogger.
Definition: laPolicyStatsLogger.cpp:45
void logHeader() override
Inherited from LALogger.
Definition: laPolicyStatsLogger.h:82
void logEndOfTraining() override
Inherited from LALogger.
Definition: laPolicyStatsLogger.h:102
LAPolicyStatsLogger(Learn::LearningAgent &la, std::ostream &out=std::cout)
Main constructor for the LAPolicyStatsLogger.
Definition: laPolicyStatsLogger.h:74
Abstract class representing the vertices of a TPGGraph.
Definition: tpgVertex.h:49
Definition: laBasicLogger.h:44