I see, I will look into the documentation of it, thanks Jake.
Hi EnviousStarfish54 , you can use the APIClient
to programmatically extract metrics for a specific task. Assuming you have two tasks, you can extract data for both, than compare - will that be a good solution?
EnviousStarfish54 , a simple example code:
` from clearml.backend_api.session.client import APIClient
client = APIClient()
task_id = "<task-id>"
event_type can be "training_stats_scalar" or "plot"
event_type = "training_stats_scalar"
result = client.events.get_task_events(task=task_id , batch_size=1000, event_type=event_type)
while result.events:
for event in events:
print(event.timestamp, event.iter, event.metric, event.variant, event.value)
result = client.events.get_task_events(task=task_id , batch_size=1000, event_type=event_type , scroll_id=result.scroll_id) `
To do that you'll need to use the APIClient which allows you to make direct API calls for which there is no programmatic interface in the Task class - will that be good for you?
I only find the task.get_last_metrics() API, but I would need the entire metric array instead