浏览代码

doc improve

Co-authored-by: Ervin T. <ervin@unity3d.com>
/MLA-1734-demo-provider
GitHub 4 年前
当前提交
8278965f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      com.unity.ml-agents.extensions/Runtime/MultiAgent/BaseMultiAgentGroup.cs

6
com.unity.ml-agents.extensions/Runtime/MultiAgent/BaseMultiAgentGroup.cs


/// Increments the group rewards for all agents in this MultiAgentGroup.
/// </summary>
/// <remarks>
/// This function increase or decrease the group rewards by given amount for all agents
/// This function increases or decreases the group rewards by a given amount for all agents
/// in the group. Use <see cref="SetGroupReward(float)"/> to set the group reward assigned
/// to the current step with a specific value rather than increasing or decreasing it.
///

/// to act in the group's best interest instead of indivisual ones.
/// to act in the group's best interest instead of individual ones.
/// Group rewards are treated differently than individual agent rewards during training, so
/// calling AddGroupReward() is not equivalent to calling agent.AddReward() on each agent in the group.
/// </remarks>

/// </summary>
/// <remarks>
/// This should be used when the episode could continue, but has gone on for
/// a sufficient number of steps.
/// a sufficient number of steps, such as if the environment hits some maximum number of steps.
/// </remarks>
public void GroupEpisodeInterrupted()
{

正在加载...
取消
保存