39#ifndef LEARNING_PARAMETERS_H
40#define LEARNING_PARAMETERS_H
42#include "mutator/mutationParameters.h"
43#include "selector/selectionParameters.h"
66 "// Number of recordings held in the Archive.\n"
67 "// \"archiveSize\" : 50, // Default value";
73 "// Probability of archiving the result of each Program "
75 "// \"archivingProbability\" : 0.05, // Default value";
81 "// Number of evaluation of each root per generation.\n"
82 "// \"nbIterationsPerPolicyEvaluation\" : 5, // Default value";
94 "// Number of evaluation of each root per generation.\n"
95 "// \"nbIterationsPerPolicyValidation\" : 5, // Default value";
104 "// Maximum number of actions performed on the learning "
105 "environment during the\n"
106 "// each evaluation of a root.\n"
107 "// \"maxNbActionsPerEval\" : 1000, // Default value";
114 "// Number of generations of the training.\n"
115 "// \"nbGenerations\" : 500, // Default value";
121 "// Maximum number of times a given root is evaluated."
122 "After this number is\n"
123 "// reached, possibly after several generations, the score of the "
125 "// fixed, and no further evaluation will be done.\n"
126 "// \"maxNbEvaluationPerPolicy\" : 1000, // Default value";
133 "// Number of registers for the Program execution.\n"
134 "// \"nbRegisters\" : 8, // Default value";
140 "// Number of Constant available in each Program.\n"
141 "// \"nbProgramConstant\" : 0, // Default value";
147 "// [Only used in ParallelLearningAgent and child classes.]\n"
148 "// Number of threads used for the training process.\n"
149 "// When undefined in the json file, this parameter is "
150 "automatically set to the\n"
151 "// number of cores of the CPU.\n"
152 "// /* \"nbThreads\" : 0,*/ // Commented by default";
167 "// Boolean used to activate detailed timing during learning.\n"
168 "// \"detailedTiming\" : false, // Default value";
174 "// string that indicate the activation function used for "
175 "continuous actions \n"
176 "// \"activationFunction\" : 'none', // Default value";
183 "// Boolean used to activate an evaluation of the surviving roots "
185 "// mode after the training at each generation.\n"
186 "// \"doValidation\" : false, // Default value";
193 "// Value to indicate how many generation between each validation "
195 "// \"stepValidation\" : 1, // Default value";
Definition classificationLearningEnvironment.h:44
struct Learn::LearningParameters LearningParameters
Structure for simplifying the transmission of LearningParameters to functions.
Structure for simplifying the transmission of LearningParameters to functions.
Definition learningParameters.h:55
Selector::SelectionParameters selection
Definition learningParameters.h:62
size_t nbProgramConstant
Number of Constants available in a program.
Definition learningParameters.h:143
static const std::string nbProgramConstantComment
JSon comment.
Definition learningParameters.h:139
Mutator::MutationParameters mutation
Definition learningParameters.h:58
static const std::string activationFunctionComment
JSon comment.
Definition learningParameters.h:173
static const std::string nbRegistersComment
JSon comment.
Definition learningParameters.h:132
size_t nbRegisters
Number of registers for the Program execution.
Definition learningParameters.h:136
double archivingProbability
Probability of archiving the result of each Program execution.
Definition learningParameters.h:77
size_t maxNbEvaluationPerPolicy
Definition learningParameters.h:129
size_t archiveSize
Number of recordings held in the Archive.
Definition learningParameters.h:69
static const std::string nbThreadsComment
JSon comment.
Definition learningParameters.h:146
uint64_t maxNbActionsPerEval
Definition learningParameters.h:110
static const std::string maxNbActionsPerEvalComment
JSon comment.
Definition learningParameters.h:103
static const std::string stepValidationComment
JSon comment.
Definition learningParameters.h:192
uint64_t nbGenerations
Number of generations of the training.
Definition learningParameters.h:117
std::string activationFunction
Definition learningParameters.h:179
bool detailedTiming
enable detailed timing during learning
Definition learningParameters.h:170
uint64_t stepValidation
Value to indicate how many generation between each validation step.
Definition learningParameters.h:197
static const std::string maxNbEvaluationPerPolicyComment
JSon comment.
Definition learningParameters.h:120
static const std::string detailedTimingComment
JSon comment.
Definition learningParameters.h:166
static const std::string nbGenerationsComment
JSon comment.
Definition learningParameters.h:113
static const std::string nbIterationsPerPolicyEvaluationComment
JSon comment.
Definition learningParameters.h:80
static const std::string archivingProbabilityComment
JSon comment.
Definition learningParameters.h:72
size_t nbThreads
Number of threads (ParallelLearningAgent only)
Definition learningParameters.h:163
static const std::string archiveSizeComment
JSon comment.
Definition learningParameters.h:65
static const std::string doValidationComment
JSon comment.
Definition learningParameters.h:182
static const std::string nbIterationsPerPolicyValidationComment
JSon comment.
Definition learningParameters.h:93
uint64_t nbIterationsPerPolicyEvaluation
Number of evaluation of each policy per generation.
Definition learningParameters.h:90
bool doValidation
Definition learningParameters.h:189
uint64_t nbIterationsPerPolicyValidation
Number of evaluation of each policy per generation for validation.
Definition learningParameters.h:100
Structure holding all parameters affecting stochastic mutations.
Definition mutationParameters.h:333
Structure holding all parameters affecting selection.
Definition selectionParameters.h:99