From 5e7e3eb2756fdf444d57e0d213bfa3f4bf4c8d1f Mon Sep 17 00:00:00 2001 From: c0d3rman Date: Sat, 24 Jan 2015 21:37:02 -0800 Subject: [PATCH] Fixed Experience MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed name of Experience so it doesn’t interfere with the global function. --- deepqlearn.moon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deepqlearn.moon b/deepqlearn.moon index 84112e5..e2348f2 100644 --- a/deepqlearn.moon +++ b/deepqlearn.moon @@ -35,13 +35,13 @@ table.length = (T) -> -- state that resulted from the action. This is later used to train the network -- Remember that the utility of an action is evaluated from the reward gained and -- the utility of the state it led to (recursive definition) - Experience = export Experience = (state0, action0, reward0, state1) -> + NewExperience = state0: state0 action0: action0 reward0: reward0 state1: state1 - return Experience + return NewExperience -- BRAIN