add dino jumping environment, deterministic/reproducable behaviour and save-and-load feature

- add feature to save and load learning progress (Q-Table) and current episode count
- episode end is now purely decided by environment instead of monte carlo algo capping it on 10 actions
- using linkedHashMap on all locations to ensure deterministic behaviour
- fixed major RNG issue to reproduce algorithmic behaviour
- clearing rewardHistory, to only save the last 10k rewards
- added google dino jump environment
This commit is contained in:
2019-12-22 23:33:56 +01:00
parent b1246f62cc
commit 5a4e380faf
24 changed files with 415 additions and 56 deletions
+4 -2
View File
@@ -1,12 +1,14 @@
package core;
import java.security.SecureRandom;
import java.util.Random;
public class RNG {
private static Random rng;
private static SecureRandom rng;
private static int seed = 123;
static {
rng = new Random(seed);
rng = new SecureRandom();
rng.setSeed(seed);
}
public static Random getRandom() {