44#include "learn/evaluationResult.h"
45#include "log/logger.h"
46#include "tpg/tpgGraph.h"
70 std::shared_ptr<std::chrono::time_point<
71 std::chrono::system_clock, std::chrono::nanoseconds>>
const start;
77 std::shared_ptr<std::chrono::time_point<std::chrono::system_clock,
78 std::chrono::nanoseconds>>
109 const std::chrono::time_point<std::chrono::system_clock,
110 std::chrono::nanoseconds>& begin)
118 std::chrono::time_point<std::chrono::system_clock,
119 std::chrono::nanoseconds>
141 std::ostream& out = std::cout);
177 std::multimap<std::shared_ptr<Learn::EvaluationResult>,
193 std::multimap<std::shared_ptr<Learn::EvaluationResult>,
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
double mutationTime
Definition: laLogger.h:85
std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds > getTime() const
Gets the current time value, for example to set checkpoint.
Definition: laLogger.cpp:48
virtual void logHeader()=0
Logs the header (e.g. column names) of this logger.
virtual void logAfterDecimate()=0
Method called by the Learning Agent right after the decimation is done.
virtual void logAfterPopulateTPG()=0
Method called by the Learning Agent right after PopulateTPG is done.
void chronoFromNow()
Updates checkpoint to now.
Definition: laLogger.cpp:63
double validTime
Definition: laLogger.h:97
virtual void logNewGeneration(uint64_t &generationNumber)=0
Method called by the LearningAgent at the start of a generation.
Learn::LearningAgent & learningAgent
LearningAgent logged by the LALogger.
Definition: laLogger.h:100
virtual void logAfterValidate(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results)=0
Method called by the Learning Agent right after the validation is done.
LALogger(Learn::LearningAgent &la, std::ostream &out=std::cout)
Constructor defining a given output and setting start and checkpoint as now. Default output is cout.
Definition: laLogger.cpp:53
virtual void logEndOfTraining()=0
Method called by the Learning Agent when the training is done.
double getDurationFrom(const std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds > &begin) const
Computes the duration from a given time to now.
Definition: laLogger.cpp:40
virtual void logAfterEvaluate(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results)=0
Method called by the Learning Agent right after the evaluation is done.
std::shared_ptr< std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds > > const start
Definition: laLogger.h:71
std::shared_ptr< std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds > > checkpoint
Definition: laLogger.h:79
bool doValidation
Definition: laLogger.h:126
double evalTime
Definition: laLogger.h:91
Abstract class representing the vertices of a TPGGraph.
Definition: tpgVertex.h:49
Definition: adversarialEvaluationResult.h:45
Definition: laBasicLogger.h:44