From f17a469ab1dfb9dfda13f59ad799cbb59a9960b6 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Mon, 6 May 2019 10:21:38 +0200 Subject: [PATCH] Increased history size --- trainer/src/Trainer.cpp | 2 +- transition_machine/include/Config.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trainer/src/Trainer.cpp b/trainer/src/Trainer.cpp index 13de243..6076320 100644 --- a/trainer/src/Trainer.cpp +++ b/trainer/src/Trainer.cpp @@ -347,7 +347,7 @@ void Trainer::doStepTrain() } actionName = pAction; - if (choiceWithProbability(0.5)) + if (choiceWithProbability(0.2) && TI.getEpoch() >= ProgramParameters::dynamicEpoch) actionName = oAction; char buffer[1024]; diff --git a/transition_machine/include/Config.hpp b/transition_machine/include/Config.hpp index 9aba457..604d9ea 100644 --- a/transition_machine/include/Config.hpp +++ b/transition_machine/include/Config.hpp @@ -134,7 +134,7 @@ class Config private : - const unsigned int HISTORY_SIZE = 100000; + const unsigned int HISTORY_SIZE = 1000000; /// @brief The name of the current state of the TransitionMachine. std::string currentStateName; /// @brief For each state of the TransitionMachine, an history of the Action that have been applied to this Config. -- GitLab