Spaces:
Running
on
T4
Running
on
T4
Hugo Flores
commited on
Commit
•
275afd0
1
Parent(s):
cc3a37b
save each metric on its own
Browse files- scripts/exp/c2f_eval.py +2 -5
scripts/exp/c2f_eval.py
CHANGED
@@ -80,14 +80,11 @@ def eval(
|
|
80 |
|
81 |
metric_keys = [k for k in metrics[0].keys() if k not in ("condition", "file")]
|
82 |
|
83 |
-
|
84 |
for mk in metric_keys:
|
85 |
stat = pandas.DataFrame(metrics)
|
86 |
stat = stat.groupby(['condition'])[mk].agg(['mean', 'count', 'std'])
|
87 |
-
stats.
|
88 |
-
|
89 |
-
stats = pandas.concat(stats, axis=1)
|
90 |
-
stats.to_csv(exp_dir / "metrics-stats.csv")
|
91 |
|
92 |
df = pandas.DataFrame(metrics)
|
93 |
df.to_csv(exp_dir / "metrics-all.csv", index=False)
|
|
|
80 |
|
81 |
metric_keys = [k for k in metrics[0].keys() if k not in ("condition", "file")]
|
82 |
|
83 |
+
|
84 |
for mk in metric_keys:
|
85 |
stat = pandas.DataFrame(metrics)
|
86 |
stat = stat.groupby(['condition'])[mk].agg(['mean', 'count', 'std'])
|
87 |
+
stat.to_csv(exp_dir / f"stats-{mk}.csv")
|
|
|
|
|
|
|
88 |
|
89 |
df = pandas.DataFrame(metrics)
|
90 |
df.to_csv(exp_dir / "metrics-all.csv", index=False)
|