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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user