Skip to content

Commit

Permalink
Fixed Experience
Browse files Browse the repository at this point in the history
Changed name of Experience so it doesn’t interfere with the global
function.
  • Loading branch information
c0d3rman committed Jan 25, 2015
1 parent 4adb4b1 commit 5e7e3eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepqlearn.moon
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5e7e3eb

Please sign in to comment.