Sb3EvalScriptSettings
Full path:
schola.scripts.sb3.eval.settings.Sb3EvalScriptSettings
Top-level settings for evaluating a saved Stable-Baselines3 policy with Schola.
Sb3EvalScriptSettings(checkpoint = None, n_eval_episodes = 10, deterministic = True, vecnormalize = None, logging_settings = <factory>, environment_settings = <factory>, algorithm_settings = <factory>)Parameters
-
checkpoint(Annotated) -
n_eval_episodes(Annotated) -
deterministic(bool) -
vecnormalize(Annotated) -
logging_settings(Annotated) -
environment_settings(Annotated) -
algorithm_settings(Annotated)
Methods
init
__init__(checkpoint = None, n_eval_episodes = 10, deterministic = True, vecnormalize = None, logging_settings = <factory>, environment_settings = <factory>, algorithm_settings = <factory>)Parameters
-
checkpoint(Annotated) -
n_eval_episodes(Annotated) -
deterministic(bool) -
vecnormalize(Annotated) -
logging_settings(Annotated) -
environment_settings(Annotated) -
algorithm_settings(Annotated)
Attributes
algorithm_settings
algorithm_settingsThe algorithm used to train the checkpoint that is being evaluated.
checkpoint
checkpointPath to a trained policy checkpoint (.zip) produced by SB3 model.save() (required via —checkpoint).
deterministic
deterministicIf True, the policy mean (or mode) is used; if False, stochastic actions are sampled.
environment_settings
environment_settingsHow to launch or attach to the Unreal simulator and gRPC protocol for the environment.
logging_settings
logging_settingsLogging verbosity for Schola and SB3 components.
n_eval_episodes
n_eval_episodesNumber of evaluation episodes for stable_baselines3.common.evaluation.evaluate_policy.
vecnormalize
vecnormalizeOptional VecNormalize statistics file (.pkl) saved alongside the policy.