MCPcopy Create free account
hub / github.com/Ropedia/SpatialBench / _fmt

Function _fmt

benchmark/evaluation/bench_memory_curve.py:630–635  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

628 )
629
630 def _fmt(v):
631 if v is None:
632 return ""
633 if isinstance(v, float):
634 return f"{v:.4f}" if abs(v) < 1e4 else f"{v:.2f}"
635 return str(v)
636
637 # CSV: rows=models, columns=per-N status / mem / time [+ metric_status / abs_rel / auc_5 / ate]
638 csv_path = os.path.join(outdir, "summary.csv")

Callers 1

_aggregate_summaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected