Config
Config(run: Run) -> NoneDict-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.
Methods
Section titled “Methods”update['(data: dict[str, Any]) -> None']
Section titled “update['(data: dict[str, Any]) -> None']”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.
keys['() -> Any']
Section titled “keys['() -> Any']”Return config keys.
items['() -> Any']
Section titled “items['() -> Any']”Return config key-value pairs.