ringify(brain.toJSON()));
    }
    
    function resetAgent() {
      eval($("#agentspec").val())
      var brain = new RL.DQNAgent(env, spec);
      w.agents[0].brain = brain;
    }

    function loadAgent() {
      $.getJSON( "agentzoo/wateragent.json", function( data ) {
        var agent = w.agents[0].brain;
        agent.fromJSON(data); // corss your fingers...
        // set epsilon to be much lower for more optimal behavior
        agent.epsilon = 0.05;
        $("#slider").slider('value', agent.eps