Skip to content
Snippets Groups Projects
Commit c46212ba authored by BrunoDatoMeneses's avatar BrunoDatoMeneses
Browse files

ERR: double instance learning

parent d02d65aa
No related branches found
No related tags found
1 merge request!4Exp rein
...@@ -103,14 +103,14 @@ public abstract class SimpleReinforcement1DSpatialRewardAndAction { ...@@ -103,14 +103,14 @@ public abstract class SimpleReinforcement1DSpatialRewardAndAction {
* *
*/ */
public static class AmoebaQL implements LearningAgent { public static class AmoebaQL implements LearningAgent {
//public AMOEBA amoebaSpatialReward; public AMOEBA amoebaSpatialReward;
public AMOEBA amoebaControlModel; public AMOEBA amoebaControlModel;
public double lr = 0.8; public double lr = 0.8;
public double gamma = 0.9; public double gamma = 0.9;
private Random rand = new Random(); private Random rand = new Random();
public AmoebaQL() { public AmoebaQL() {
//amoebaSpatialReward = setupSpatialReward(); amoebaSpatialReward = setupSpatialReward();
amoebaControlModel = setupControlModel(); amoebaControlModel = setupControlModel();
} }
...@@ -153,7 +153,7 @@ public abstract class SimpleReinforcement1DSpatialRewardAndAction { ...@@ -153,7 +153,7 @@ public abstract class SimpleReinforcement1DSpatialRewardAndAction {
System.out.println("ControlModel " + previousStateCurrentStateAction + " ---------------- SIMPLE REIN XP 149"); System.out.println("ControlModel " + previousStateCurrentStateAction + " ---------------- SIMPLE REIN XP 149");
System.out.println("SpatialReward " + positionAndReward + " ---------------- SIMPLE REIN XP 149"); System.out.println("SpatialReward " + positionAndReward + " ---------------- SIMPLE REIN XP 149");
//amoebaSpatialReward.learn(positionAndReward); amoebaSpatialReward.learn(positionAndReward);
amoebaControlModel.learn(previousStateCurrentStateAction); amoebaControlModel.learn(previousStateCurrentStateAction);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment