Help us improve these docs. Take our quick survey.
api = wandb.Api() sweep = api.sweep("entity/project/sweep_id") # val_acc を基準に run をソートし、最良の run を取得します runs = sorted(sweep.runs, key=lambda run: run.summary.get("val_acc", 0), reverse=True) best_run = runs[0] # 最良の run でログに記録されたアーティファクトをダウンロードします for artifact in best_run.logged_artifacts(): artifact_path = artifact.download() print(artifact_path)
Was this page helpful?