上下文
嗨!
在wandb中,我可以下载基于标记的模型(例如,prod),但我也希望通过使用标记获得与该模型相关的所有指标。
问题是,我不知道如何获得基于标签的特定运行ID。
示例
使用下面的代码,我们可以提取运行摘要度量,但是设置运行is会使我返回。
因此,如果我可以基于标记获得运行in,或者通过另一个API调用显式下载度量,比如在api.run中使用特殊的sintax,那就太好了!在下面的代码示例中,我想使用what_i_want_to_use字符串来调用API而不是what_i_use。
import wandb
from ast import literal_eval
api = wandb.Api()
what_i_use = "team_name/project_name/runID_h3h3h4h4h4h4"
# what_i_want_to_use = "team_name/project_name/artifact_name/prod_tag"
# run is specified by <entity>/<project>/<run_id>
run = api.run(what_i_use)
# save the metrics for the run to a csv file
metrics_dataframe = run.summary
print(metrics_dataframe['a_summary_metric'])通过浏览文档,到目前为止我没有找到任何解决方案。有什么想法吗?
感谢您的阅读!
发布于 2022-04-20 12:41:28
也可以通过标签过滤运行。您可以阅读更多关于它的这里。
You can filter by config.*, summary_metrics.*, tags, state, entity, createdAt, etc.https://stackoverflow.com/questions/71916901
复制相似问题