Tool to download Weights & Biases (W&B) run logs to local JSON files.
- class ml_research_tools.exp.wandb_downloader_tool.WandbDownloaderTool(services)[source]#
Bases:
BaseTool
Tool for downloading W&B run logs to local JSON files.
Initialize the W&B downloader tool.
- classmethod add_arguments(parser)[source]#
Add tool-specific arguments to the parser.
- Return type:
- Parameters:
parser (ArgumentParser)
- download_wandb_logs(entity, project, output_dir='wandb_logs', timeout=30, quiet=False, delete_outdated=True)[source]#
Download W&B logs for a specified project to local JSON files.
- Parameters:
entity (
str
) – The W&B entity (username or team name)project (
str
) – The W&B project nameoutput_dir (
str
) – Directory where log files will be savedtimeout (
int
) – API timeout in secondsquiet (
bool
) – If True, suppress progress bardelete_outdated (
bool
) – If True, delete logs for runs that no longer exist
- Return type: