From 996be7fac8e057a0b4568c4c2787b8ec440e0e0d Mon Sep 17 00:00:00 2001 From: wassname Date: Mon, 26 Nov 2018 06:42:48 +0800 Subject: [PATCH] more neurons, less reset --- js/game.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index 8ed4943..ee99849 100644 --- a/js/game.js +++ b/js/game.js @@ -35,6 +35,7 @@ gameInit = function() { actor: new window.neurojs.Network.Model([ { type: 'input', size: input }, { type: 'fc', size: 60, activation: 'relu' }, + { type: 'fc', size: 40, activation: 'relu' }, { type: 'fc', size: 40, activation: 'relu', dropout: 0.30 }, { type: 'fc', size: actions, activation: 'tanh' }, { type: 'regression' } @@ -70,7 +71,7 @@ gameInit = function() { globals.step_counter = 0; globals.simulation_interval = setInterval(simulationStep, Math.round(1000/config.simulation_fps)); globals.draw_interval = setInterval(drawFrame, Math.round(1000 / config.draw_fps)); - globals.draw_interval = setInterval(resetSimulation, Math.round(1000 * 1000 / config.draw_fps)); + globals.draw_interval = setInterval(resetSimulation, Math.round(8000 * 1000 / config.draw_fps)); } resetSimulation = function () {