Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsPolicy
Description
Decodes and samples action vectors using the Decoder network. This should be called after both MakeActionModifiers and EvaluatePolicy, but before PerformActions.
| Name | DecodeAndSampleActions |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsPolicy.h |
| Include Path | #include "LearningAgentsPolicy.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsPolicy.cpp |
UFUNCTION (BlueprintCallable, Category="LearningAgents")
void DecodeAndSampleActions
(
const float ActionNoiseScale
)
Parameters
| Name | Remarks |
|---|---|
| ActionNoiseScale | Scale of the action noise to use during sampling. Set this to zero to always sample the mean (expected) action. |