GEGELATI
Loading...
Searching...
No Matches
cycleDetectionLALogger.h
1
36#include "laLogger.h"
37
38namespace Log {
39
47 {
48 private:
50 bool logOnSuccess;
51
52 public:
64 std::ostream& out = std::cerr,
65 bool logOnSuccess = false)
66 : LALogger(la, out), logOnSuccess(logOnSuccess)
67 {
68 }
69
75 virtual void logHeader() override;
76
82 virtual void logNewGeneration(uint64_t& generationNumber) override;
83
90 virtual void logAfterPopulateTPG() override;
91
99 virtual void logAfterEvaluate(
100 std::multimap<std::shared_ptr<Learn::EvaluationResult>,
101 const TPG::TPGVertex*>& results) override;
102
108 virtual void logAfterDecimate() override;
109
120 virtual void logAfterValidate(
121 std::multimap<std::shared_ptr<Learn::EvaluationResult>,
122 const TPG::TPGVertex*>& results) override;
128 virtual void logEndOfTraining() override;
129 };
130}; // namespace Log
Class used to control the learning steps of a TPGGraph within a given LearningEnvironment.
Definition learningAgent.h:67
Detector for connected cycles in TPGs.
Definition cycleDetectionLALogger.h:47
virtual void logEndOfTraining() override
Does nothing in this logger.
Definition cycleDetectionLALogger.cpp:142
CycleDetectionLALogger(Learn::LearningAgent &la, std::ostream &out=std::cerr, bool logOnSuccess=false)
Same constructor as LALogger. Default output is cerr.
Definition cycleDetectionLALogger.h:63
virtual void logAfterPopulateTPG() override
Checks the presence of directed cyclic path in the TPG. Loggs an output if there is one.
Definition cycleDetectionLALogger.cpp:53
virtual void logNewGeneration(uint64_t &generationNumber) override
Does nothing in this logger.
Definition cycleDetectionLALogger.cpp:48
virtual void logHeader() override
Does nothing in this logger.
Definition cycleDetectionLALogger.cpp:43
virtual void logAfterValidate(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results) override
Logs the min, avg and max score of the generation.
Definition cycleDetectionLALogger.cpp:135
virtual void logAfterEvaluate(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results) override
Does nothing in this logger.
Definition cycleDetectionLALogger.cpp:123
virtual void logAfterDecimate() override
Does nothing in this logger.
Definition cycleDetectionLALogger.cpp:130
Learning Agent logger class that will be called during LearningAgent executions.
Definition laLogger.h:66
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
Definition cycleDetectionLALogger.h:38