MCPcopy
hub / github.com/SwanHubX/SwanLab / update_config

Method update_config

swanlab/integration/sb3.py:154–160  ·  view source on GitHub ↗

Update swanlab config (backward-compatible helper).

(self, config: Dict[str, Any])

Source from the content-addressed store, hash-verified

152 self._pending_config.clear()
153
154 def update_config(self, config: Dict[str, Any]) -> None:
155 """Update swanlab config (backward-compatible helper)."""
156 run = self._get_active_run()
157 if run is None:
158 self._pending_config.update(config)
159 return
160 run.config.update(config)
161
162 def _collect_config(self) -> None:
163 """Collect model and training hyperparameters into config."""

Callers

nothing calls this directly

Calls 2

_get_active_runMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected