Commit e3b5108d authored by Nicola Gatto's avatar Nicola Gatto
Browse files

Add parameter for strategy epsilon decay per step

parent 2a2abdc5
......@@ -190,6 +190,7 @@ grammar CNNTrain extends de.monticore.lang.monticar.Common2, de.monticore.Number
EpsilonDecayStartEntry implements GeneralStrategyEntry = name:"epsilon_decay_start" ":" value:IntegerValue;
EpsilonDecayMethodEntry implements GeneralStrategyEntry = name:"epsilon_decay_method" ":" value:EpsilonDecayMethodValue;
EpsilonDecayMethodValue implements ConfigValue = (linear:"linear" | no:"no");
EpsilonDecayPerStepEntry implements GeneralStrategyEntry = name:"epsilon_decay_per_step" ":" value:BooleanValue;
EpsilonDecayEntry implements GeneralStrategyEntry = name:"epsilon_decay" ":" value:NumberValue;
// Environment
......
......@@ -79,6 +79,7 @@ class ParameterAlgorithmMapping {
ASTMinEpsilonEntry.class,
ASTEpsilonDecayEntry.class,
ASTEpsilonDecayMethodEntry.class,
ASTEpsilonDecayPerStepEntry.class,
ASTNumEpisodesEntry.class,
ASTRosEnvironmentActionTopicEntry.class,
ASTRosEnvironmentStateTopicEntry.class,
......
......@@ -19,6 +19,7 @@ configuration TD3Config {
strategy : gaussian {
epsilon: 1.0
min_epsilon: 0.001
epsilon_decay_per_step: true
epsilon_decay_method: linear
epsilon_decay : 0.0001
epsilon_decay_start: 50
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment