Ejemplo n.º 1
0
 ResetRewardFunction()
 {
     if (IsRewardDistance)
     {
         RewardFunctionDistance.Reset();
     }
 }
Ejemplo n.º 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();
         }
     }
 }
Ejemplo n.º 3
0
 ResetRewardFunction()
 {
     if (RewardScheme == RewardSchemes.CL)
     {
         if (IsRewardDistance)
         {
             RewardFunctionDistance.Reset();
         }
     }
 }
Ejemplo n.º 4
0
 ResetRewardFunction()
 {
     // reset reward functions
     if (IsRewardDistanceToTarget)
     {
         RewardFunctionDistanceToTarget.Reset();
     }
     if (IsRewardFacingTarget)
     {
         RewardFunctionFacingTarget.Reset();
     }
     if (IsRewardTimePenalty)
     {
         RewardFunctionTimePenalty.Reset();
     }
 }