commonpower.control.logging_utils.callbacks.SafetyCallback
- class SafetyCallback(verbose: int = 0)[source]
Bases:
BaseCallbackClass for logging additional safety information for single-agent stable-baselines3 algorithms
Methods
init_callbackInitialize the callback by saving references to the RL model and the training environment for convenience.
on_rollout_endon_rollout_starton_stepThis method will be called by the model after each call to
env.step().on_training_endon_training_startupdate_child_localsUpdate the references to the local variables on sub callbacks.
update_localsUpdate the references to the local variables.
Attributes
modellogger