GEGELATI
Loading...
Searching...
No Matches
laPolicyStatsLogger.h
1
37#ifndef LA_POLICY_STATS_LOGGER_H
38#define LA_POLICY_STATS_LOGGER_H
39
40#include "log/laLogger.h"
41#include "tpg/policyStats.h"
42#include "tpg/tpgVertex.h"
43
44namespace Log {
53 {
54 private:
62 const TPG::TPGVertex* lastBestRoot = nullptr;
63
65 uint64_t generationNumber = 0;
66
67 public:
76 std::ostream& out = std::cout)
77 : LALogger(la, out){};
78
80 void logNewGeneration(uint64_t& generationNumber) override;
81
83 void logAfterDecimate() override;
84 };
85}; // namespace Log
86
87#endif // !LA_POLICY_STATS_LOGGER_H
Class used to control the learning steps of a TPGGraph within a given LearningEnvironment.
Definition learningAgent.h:67
Learning Agent logger class that will be called during LearningAgent executions.
Definition laLogger.h:66
LALogger specialization using logging the PolicyStats information on the best root.
Definition laPolicyStatsLogger.h:53
void logNewGeneration(uint64_t &generationNumber) override
Inherited from LALogger.
Definition laPolicyStatsLogger.cpp:41
void logAfterDecimate() override
Inherited from LALogger.
Definition laPolicyStatsLogger.cpp:46
LAPolicyStatsLogger(Learn::LearningAgent &la, std::ostream &out=std::cout)
Main constructor for the LAPolicyStatsLogger.
Definition laPolicyStatsLogger.h:75
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
Definition cycleDetectionLALogger.h:38