Skip to content

Commit

Permalink
Fix Cumulative reward reset
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentpierre committed Dec 8, 2017
1 parent c1e6982 commit 09cb0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unity-environment/Assets/ML-Agents/Scripts/Agent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ public virtual void AgentReset()
public void Reset()
{
memory = new float[brain.brainParameters.memorySize];
CumulativeReward = 0f;
stepCounter = 0;
AgentReset();
}
Expand Down Expand Up @@ -238,6 +237,7 @@ public void Step()
public void ResetReward()
{
reward = 0;
CumulativeReward = 0f;
}

}

0 comments on commit 09cb0bf

Please sign in to comment.