From 3bdcbb39bcd5505b4002f0b6e3ee739f5effe039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20L=C3=B6wenstrom?= Date: Thu, 2 Apr 2020 18:45:36 +0200 Subject: [PATCH] reset DinoSampling to advanced Every Visit --- ...veryVisitMC.png => SimpleNoJumpEveryVisitMCA.png | Bin src/main/java/example/DinoSampling.java | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename SimpleNoJumpEveryVisitMC.png => SimpleNoJumpEveryVisitMCA.png (100%) diff --git a/SimpleNoJumpEveryVisitMC.png b/SimpleNoJumpEveryVisitMCA.png similarity index 100% rename from SimpleNoJumpEveryVisitMC.png rename to SimpleNoJumpEveryVisitMCA.png diff --git a/src/main/java/example/DinoSampling.java b/src/main/java/example/DinoSampling.java index 33d02dd..a4ed314 100644 --- a/src/main/java/example/DinoSampling.java +++ b/src/main/java/example/DinoSampling.java @@ -4,7 +4,7 @@ import core.RNG; import core.algo.Method; import core.controller.RLController; import evironment.jumpingDino.DinoAction; -import evironment.jumpingDino.DinoWorld; +import evironment.jumpingDino.DinoWorldAdvanced; import java.io.File; import java.io.IOException; @@ -14,7 +14,7 @@ import java.nio.file.StandardOpenOption; public class DinoSampling { public static final float f =0.05f; - public static final String FILE_NAME = "convergence.txt"; + public static final String FILE_NAME = "advancedEveryVisit.txt"; public static void main(String[] args) { File file = new File(FILE_NAME); try { @@ -22,18 +22,18 @@ public class DinoSampling { } catch (IOException e) { e.printStackTrace(); } - for(float f = 0.06f; f <= 1.003; f += 0.05f) { + for(float f = 0.05f; f <= 1.003; f += 0.05f) { try { Files.writeString(Path.of(file.getPath()), f + ",", StandardOpenOption.APPEND); } catch (IOException e) { e.printStackTrace(); } - for(int i = 1; i <= 10; i++) { + for(int i = 1; i <= 100; i++) { System.out.println("seed: " + i * 13); - RNG.setSeed(i * 17); + RNG.setSeed(i * 13); RLController rl = new RLController<>( - new DinoWorld(), + new DinoWorldAdvanced(), Method.MC_CONTROL_EVERY_VISIT, DinoAction.values()); rl.setDelay(0);