You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importpandasaspdimportnumpyasnpimportwandbapi=wandb.Api()
# Project is specified by <entity/project-name>runs=api.runs(project_naame)
summary_list, config_list, name_list= [], [], []
forruninruns:
# .summary contains the output keys/values for metrics like accuracy.# We call ._json_dict to omit large filessummary_list.append(run.summary._json_dict)
# .config contains the hyperparameters.# We remove special values that start with _.config_list.append({k: vfork, vinrun.config.items() ifnotk.startswith('_')})
# .name is the human-readable name of the run.name_list.append(run.name)
runs_df=pd.DataFrame({
"summary": summary_list,
"config": config_list,
"name": name_list
})
# print(runs_df)print(*summary_list, sep='\n')
best_test_metric_list= [
summary['final/best_test_metric']
forsummaryinsummary_list
]
print(f"{np.mean(best_test_metric_list):.5f} +- {np.std(best_test_metric_list):.5f}")
runs_df.to_csv(f"{project_naame}.csv")
🚑 Any additional [like screenshots]
The text was updated successfully, but these errors were encountered:
🤩 Features description [Please make everyone to understand it]
提供获取实验数据的代码接口,让用户可以通过代码下载指定项目名称的实验数据,方便用户更加高效的实验数据获取以及后续的数据分析。
👍 What problem does this feature solve
有了这个代码接口后,用户无需再逐一访问各个项目的网页,手动点击下载实验数据,这大大节省了时间和精力。
这样的设计不仅提升了用户体验,也提高了工作效率,例如更方便的计算一个项目中多个实验的各项指标统计值(如平均值、方差等),并轻松对比不同项目之间的实验效果。
👾 What does the proposed API look like
参考wandb的接口:
🚑 Any additional [like screenshots]
The text was updated successfully, but these errors were encountered: