sweep で最良の run から Artifacts を見つけるにはどうすればよいですか?
Support:
less than a minute
アーティファクトを sweep の中で最も良いパフォーマンスを示した run から取得するには、次のコードを使用します。
api = wandb.Api()
sweep = api.sweep("entity/project/sweep_id")
runs = sorted(sweep.runs, key=lambda run: run.summary.get("val_acc", 0), reverse=True)
best_run = runs[0]
for artifact in best_run.logged_artifacts():
artifact_path = artifact.download()
print(artifact_path)
フィードバック
このページは役に立ちましたか?
Glad to hear it! If you have further feedback, please let us know.
Sorry to hear that. Please tell us how we can improve.