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
43namespace 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 logAfterDecimate() override;
83 };
84}; // namespace Log
85
86#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:67
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::logNewGeneration
void logNewGeneration(uint64_t &generationNumber) override
Inherited from LALogger.
Definition laPolicyStatsLogger.cpp:40
Log::LAPolicyStatsLogger::logAfterDecimate
void logAfterDecimate() override
Inherited from LALogger.
Definition laPolicyStatsLogger.cpp:45
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