GEGELATI

Loading...
Searching...
No Matches
cycleDetectionLALogger.h
1
36#include "laLogger.h"
37
38 namespace Log {
39
46 class CycleDetectionLALogger : public LALogger
47 {
48 private:
50 bool logOnSuccess;
51
52 public:
63 explicit CycleDetectionLALogger(Learn::LearningAgent& la,
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
Learn::LearningAgent
Class used to control the learning steps of a TPGGraph within a given LearningEnvironment.
Definition learningAgent.h:67
Log::CycleDetectionLALogger
Detector for connected cycles in TPGs.
Definition cycleDetectionLALogger.h:47
Log::CycleDetectionLALogger::logEndOfTraining
virtual void logEndOfTraining() override
Does nothing in this logger.
Definition cycleDetectionLALogger.cpp:142
Log::CycleDetectionLALogger::CycleDetectionLALogger
CycleDetectionLALogger(Learn::LearningAgent &la, std::ostream &out=std::cerr, bool logOnSuccess=false)
Same constructor as LALogger. Default output is cerr.
Definition cycleDetectionLALogger.h:63
Log::CycleDetectionLALogger::logAfterPopulateTPG
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
Log::CycleDetectionLALogger::logNewGeneration
virtual void logNewGeneration(uint64_t &generationNumber) override
Does nothing in this logger.
Definition cycleDetectionLALogger.cpp:48
Log::CycleDetectionLALogger::logHeader
virtual void logHeader() override
Does nothing in this logger.
Definition cycleDetectionLALogger.cpp:43
Log::CycleDetectionLALogger::logAfterValidate
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
Log::CycleDetectionLALogger::logAfterEvaluate
virtual void logAfterEvaluate(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results) override
Does nothing in this logger.
Definition cycleDetectionLALogger.cpp:123
Log::CycleDetectionLALogger::logAfterDecimate
virtual void logAfterDecimate() override
Does nothing in this logger.
Definition cycleDetectionLALogger.cpp:130
Log::LALogger
Learning Agent logger class that will be called during LearningAgent executions.
Definition laLogger.h:65
TPG::TPGVertex
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
Log
Definition cycleDetectionLALogger.h:38