Skip to content

FSB3SACSettings

A struct to hold SAC settings for an SB3 training script.

struct FSB3SACSettings : public FTrainingSettings

Methods

GenerateTrainingArgs

virtual void GenerateTrainingArgs(FScriptArgBuilder &ArgBuilder) const

Generate the training arguments for the script using the ArgBuilder.

Parameters

  • ArgBuilder (FScriptArgBuilder)

FSB3SACSettings

virtual ~FSB3SACSettings()

Attributes

LearningRate

float LearningRate = 0.0003

The learning rate for the SAC algorithm.


BufferSize

int BufferSize = 1000000

The buffer size for the SAC algorithm.


LearningStarts

int LearningStarts = 100

The number of steps to take before learning starts.


BatchSize

int BatchSize = 256

The batch size to use during gradient descent.


Tau

float Tau = 0.005

The Tau value for the SAC algorithm.


Gamma

float Gamma = 0.99

The gamma value for the SAC algorithm.


TrainFreq

int TrainFreq = 1

The frequency to update the target network, in steps.


GradientSteps

int GradientSteps = 1

The number of gradient steps to take during training.


OptimizeMemoryUsage

bool OptimizeMemoryUsage = false

Optimize memory usage.


LearnEntCoef

bool LearnEntCoef = true

Should we learn the entropy coefficient during training.


InitialEntCoef

float InitialEntCoef = 1.0

The initial entropy coefficient for the SAC algorithm.


TargetUpdateInterval

int TargetUpdateInterval = 1

The interval at which we update the target network.


TargetEntropy

FString TargetEntropy = "auto"

The target entropy for the SAC algorithm.


UseSDE

bool UseSDE = false

Use state dependent entropy noise.


SDESampleFreq

int SDESampleFreq = -1

The frequency to sample the state dependent entropy noise.

Source: Source/ScholaTraining/Public/TrainingSettings/StableBaselines/Algorithms/SB3SACSettings.h