Skip to content

lit_sb3.callbacks.convert

source module lit_sb3.callbacks.convert

Classes

source class ConvertCallback(callback: Callable[[dict[str, Any], dict[str, Any]], bool] | None, verbose: int = 0)

Bases : BaseCallback

Convert functional callback (old-style) to object.

Parameters

  • callback : Callable[[dict[str, Any], dict[str, Any]], bool] | None

  • verbose : int — Verbosity level: 0 for no output, 1 for info messages, 2 for debug messages

Attributes

  • state_key : str — Identifier for the state of the callback.