Skip to content

Config

Config(run: Run) -> None

Dict-like config object that syncs updates to the reporter immediately.

Supports both dict-style (config[“lr”]) and attribute-style (config.lr) access for wandb compatibility. Every write immediately sends the full config to the reporter and writes config.json to the run directory.

setdefaults['(data: dict[str, Any]) -> None']

Section titled “setdefaults['(data: dict[str, Any]) -> None']”

Set default values without overwriting existing keys. Matches wandb.config.setdefaults().

get['(key: str, default: Any = None) -> Any']

Section titled “get['(key: str, default: Any = None) -> Any']”

Get a value by key with an optional default.

Return config keys.

Return config key-value pairs.