Training & Saving Networks - mbithy/Trevel GitHub Wiki
Default
- Open a new tab in you browser
- Open DevTools, Console
- Copy paste everything in freesimulator.js
- Once the number of bets placed satisfies you i.e >100,000 do
env.stop=true;
JSON.stringify(agent.toJSON());
- Copy and paste the output in a text editor where you can save it for later
Advanced
When you wish to play around with these settings
//everything here is modifiable for testing purposes FYI
spec.epsilon = 0.20;
spec.alpha = 0.1;
spec.experience_add_every = 5;
spec.experience_size = 999999;
spec.learning_steps_per_iteration = 5;
spec.tderror_clamp = 1.0;
spec.num_hidden_units = 100;
Do as default but first remember to change the values to your desires before even pasting. You can also test out you MM strategies in place of
/*if(env.betOutcomes[env.betOutcomes.length-1]==="W" && winRoll<5){
testAmount=parseFloat(((testAmount*200)/100).toFixed(2));
}
else{
testAmount=2;
}*/