Skip to content

Struct FSB3CheckpointSettings

Struct FSB3CheckpointSettings

  • Defined in File SB3CheckpointSettings.h

Inheritance Relationships

Base Type

struct FSB3CheckpointSettings : public FTrainingSettings

Source: Source/Schola/Training/Public/TrainingSettings/StableBaselines/SB3CheckpointSettings.h

Dependencies: FScriptArgBuilder

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


Public Functions

SymbolDetails
GenerateTrainingArgsGenerate the training arguments for the script using the ArgBuilder.
~FSB3CheckpointSettings

GenerateTrainingArgs

virtual void GenerateTrainingArgs(FScriptArgBuilder &ArgBuilder) const

Generate the training arguments for the script using the ArgBuilder.

Populates the ArgBuilder with training-specific command-line arguments.

Parameters

ArgBuilder – [inout] The builder to use to generate the arguments.

#DirectionNameTypeDescription
1ArgBuilderFScriptArgBuilder &The builder to use to generate the arguments.

Attributes: const, virtual

Source: Source/Schola/Training/Public/TrainingSettings/StableBaselines/SB3CheckpointSettings.h

Implementation: Source/Schola/Training/Private/TrainingSettings/StableBaselines/SB3CheckpointSettings.cpp


~FSB3CheckpointSettings

virtual ~FSB3CheckpointSettings()

Attributes: virtual

Source: Source/Schola/Training/Public/TrainingSettings/StableBaselines/SB3CheckpointSettings.h

Implementation: Source/Schola/Training/Private/TrainingSettings/StableBaselines/SB3CheckpointSettings.cpp


Public Members

SymbolDetails
bSaveCheckpointsWhether to save checkpoints during training.
bSaveFinalModelWhether to save the final model.
bSaveVecNormalizeWhether to save the VecNormalize parameters.
bSaveReplayBufferWhether to save the replay buffer.
bExportFinalModelToOnnxWhether we should just create a checkpoint, or if we should also export the final model out to ONNX.
CheckpointDirThe directory to save checkpoints to.
SaveFreqThe frequency to save checkpoints.
NamePrefixThe prefix to use for the checkpoint files.

bSaveCheckpoints

bool bSaveCheckpoints = false

Whether to save checkpoints during training.


bSaveFinalModel

bool bSaveFinalModel = true

Whether to save the final model.


bSaveVecNormalize

bool bSaveVecNormalize = false

Whether to save the VecNormalize parameters.


bSaveReplayBuffer

bool bSaveReplayBuffer = false

Whether to save the replay buffer.


bExportFinalModelToOnnx

bool bExportFinalModelToOnnx = true

Whether we should just create a checkpoint, or if we should also export the final model out to ONNX.


CheckpointDir

FDirectoryPath CheckpointDir

The directory to save checkpoints to.


SaveFreq

int SaveFreq = 1000

The frequency to save checkpoints.


NamePrefix

FString NamePrefix = FString("ppo")

The prefix to use for the checkpoint files.