コード例 #1
0
 ResetRewardFunction()
 {
     if (IsRewardDistance)
     {
         RewardFunctionDistance.Reset();
     }
 }
コード例 #2
0
 ResetRewardFunction()
 {
     if (RewardScheme == RewardSchemes.IS)
     {
         // Set reward for this step according to mixture of the following elements.
         if (IsRewardDistanceToTarget)
         {
             RewardFunctionDistanceToTarget.Reset();
         }
         if (IsRewardVelocityToTarget)
         {
             RewardFunctionVelocityToTarget.Reset();
         }
         if (IsRewardFacingTarget)
         {
             RewardFunctionFacingTarget.Reset();
         }
         if (IsRewardCoreUp)
         {
             RewardFunctionCoreUp.Reset();
         }
         if (IsRewardHeadUp)
         {
             RewardFunctionHeadUp.Reset();
         }
         if (IsRewardTimePenalty)
         {
             RewardFunctionTimePenalty.Reset();
         }
     }
 }
コード例 #3
0
 ResetRewardFunction()
 {
     if (RewardScheme == RewardSchemes.CL)
     {
         if (IsRewardDistance)
         {
             RewardFunctionDistance.Reset();
         }
     }
 }
コード例 #4
0
 ResetRewardFunction()
 {
     // reset reward functions
     if (IsRewardDistanceToTarget)
     {
         RewardFunctionDistanceToTarget.Reset();
     }
     if (IsRewardFacingTarget)
     {
         RewardFunctionFacingTarget.Reset();
     }
     if (IsRewardTimePenalty)
     {
         RewardFunctionTimePenalty.Reset();
     }
 }