Unanswered
Hi Community,
Is There A Way To Download All The Logged Scalars/Plots Using Code Itself?
for the scalars :
` import pandas as pd
import plotly.graph_objects as go
scalars = client.events.scalar_metrics_iter_histogram(task=task.id).to_dict()['metrics']
for graph in scalars.keys():
for i, metric in enumerate(scalars[graph].keys()):
df = pd.DataFrame(scalars[graph][metric]).iloc[:, 1:]
fig = go.Scatter(
scalars[graph][metric],
mode='lines',
name=metric,
showlegend=True
)
plio.write_image(fig=go.Figure(fig), file=f'./my_metric_{i}.jpeg') `
170 Views
0
Answers
2 years ago
one year ago