Hi RattyLouse61 ,
I think the APIs you're looking for are:events.get_task_single_value_metrics
andevents.scalar_metrics_iter_histogram
https://clear.ml/docs/latest/docs/references/api/events#post-eventsscalar_metrics_iter_histogram
I can't find documentation for the first one but this is an example for the usage:{"tasks":["<TASK_ID>"]}
Together the two fetch all the data you see in the UI.
Is this what you're looking for?
It would be also good if I could get all the variants for a given task_id and metric
RattyLouse61 you can get the task's metrics using events.get_task_metrics
, and all.metric/variants for a specific project using projects.get_unique_metric_variants
this is a snippet of code:task = Task.get_task('xxx') session = Session() res = session.send(events.GetDebugImageSampleRequest( task=task.id, metric="xxx", variant="xxx") ) print(res.response_data["event"]["url"])