NevarokML: UNevarokMLRewardUtils API
The UNevarokMLRewardUtils class provides utility functions for working with rewards in NevarokML.
Methods
BoolReward
UFUNCTION(BlueprintPure, Category = "NevarokML|RewardUtils")
static float BoolReward(float trueReward = 1.0f, float falseReward = -1.0f, bool value = false);
Curve01Reward
UFUNCTION(BlueprintPure, Category = "NevarokML|RewardUtils")
static float Curve01Reward(const UCurveFloat* curve, float value, float min, float max, float rewardMultiplier = 1.0f);
StepsCurve01Reward
UFUNCTION(BlueprintPure, Category = "NevarokML|RewardUtils")
static float StepsCurve01Reward(const UCurveFloat* curve, int timeSteps, int maxTimeSteps = 100, float rewardMultiplier = 1.0f);
StepsDoneCurve01Reward
UFUNCTION(BlueprintPure, Category = "NevarokML|RewardUtils")
static float StepsDoneCurve01Reward(const UCurveFloat* curve, int timeSteps, int maxTimeSteps = 100, bool isDone = false, float rewardMultiplier = 1.0f);
DotProductCurveReward
UFUNCTION(BlueprintPure, Category = "NevarokML|RewardUtils")
static float DotProductCurveReward(const UCurveFloat* curve, FVector a, FVector b, float rewardMultiplier = 1.0f);