SIENTIAPDE-1645: Add comprehensive model training observability metrics and Grafana dashboard.

This commit is contained in:
vitor-aignosi
2026-06-17 10:34:56 -03:00
parent 445fe643fe
commit 76f926a8ab
12 changed files with 866 additions and 175 deletions

24
t.py Normal file
View File

@@ -0,0 +1,24 @@
# %%
from pandas import read_csv, to_datetime
df = read_csv('data-1780946658143.csv')
# %%
df.head()
# %%
# normalize timestamp to naive "yyyy-MM-dd HH:mm:ss" (drop the "+00" UTC offset)
df['timestamp'] = to_datetime(df['timestamp'], utc=True).dt.tz_localize(None)
df['timestamp'] = df['timestamp'].dt.strftime('%Y-%m-%d %H:%M:%S')
# %%
# pivot the dataframe
df = df.pivot(index='timestamp', columns='variable', values='value')
# %%
df.head()
# %%
df.to_csv('data-1780946658143-pivot.csv')
# %%