Weights & Biases
tensoris.lib.integrations.wandb ¶
Weights & Biases (W&B) Experiment Tracking Integration.
Classes¶
WandbIntegration ¶
Weights & Biases Logger for metric tracking, artifact logging, and hyperparameter sweeps.
References
Weights & Biases Python SDK Documentation: https://docs.wandb.ai/
Source code in src/tensoris/lib/integrations/wandb.py
Attributes¶
Methods:¶
__init__ ¶
Initialize W&B run.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project
|
str
|
W&B project name. |
'deep-learning-project'
|
entity
|
str | None
|
W&B username or team entity. |
None
|
config
|
dict[str, Any] | None
|
Hyperparameter configuration dictionary. |
None
|
name
|
str | None
|
Display name for the run. |
None
|
mode
|
str
|
Run mode ('online', 'offline', or 'disabled'). |
'online'
|
Source code in src/tensoris/lib/integrations/wandb.py
finish ¶
init ¶
Initialize W&B run context.
Source code in src/tensoris/lib/integrations/wandb.py
log ¶
Log metric key-value dictionary to W&B dashboard.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
metrics
|
dict[str, Any]
|
Dictionary of numerical metrics or media logs. |
required |
step
|
int | None
|
Optional global training step number. |
None
|
Source code in src/tensoris/lib/integrations/wandb.py
log_artifact ¶
Upload checkpoint file or artifact to W&B.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_path
|
str
|
Local file path to upload. |
required |
artifact_name
|
str
|
W&B artifact name identifier. |
required |
artifact_type
|
str
|
Artifact category ('model', 'dataset', 'checkpoint'). |
'model'
|