|
|
|
|
|
|
/// their own experience.
|
|
|
|
int m_StepCount; |
|
|
|
|
|
|
|
/// Number of times the Agent has completed an episode.
|
|
|
|
int m_CompletedEpisodes; |
|
|
|
|
|
|
|
/// Episode identifier each agent receives. It is used
|
|
|
|
/// to separate between different agents in the environment.
|
|
|
|
/// This Id will be changed every time the Agent resets.
|
|
|
|
|
|
|
|
|
|
|
if (doneReason != DoneReason.Disabled) |
|
|
|
{ |
|
|
|
// We don't want to udpate the reward stats when the Agent is disabled, because this will make
|
|
|
|
// We don't want to update the reward stats when the Agent is disabled, because this will make
|
|
|
|
m_CompletedEpisodes++; |
|
|
|
UpdateRewardStats(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
public int StepCount |
|
|
|
{ |
|
|
|
get { return m_StepCount; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Returns the number of episodes that the Agent has completed (either <see cref="Agent.EndEpisode()"/>
|
|
|
|
/// was called, or maxSteps was reached).
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>
|
|
|
|
/// Current episode count.
|
|
|
|
/// </returns>
|
|
|
|
public int CompletedEpisodes |
|
|
|
{ |
|
|
|
get { return m_CompletedEpisodes; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|