MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / print_all_metrics

Function print_all_metrics

deeplabcut/benchmark/mot.py:209–219  ·  view source on GitHub ↗
(accumulators: list[mm.MOTAccumulator], all_params: list[str] | None = None)

Source from the content-addressed store, hash-verified

207
208
209def print_all_metrics(accumulators: list[mm.MOTAccumulator], all_params: list[str] | None = None):
210 if not all_params:
211 names = [f"iter{i + 1}" for i in range(len(accumulators))]
212 else:
213 s = "_".join("{}" for _ in range(len(all_params[0])))
214 names = [s.format(*params.values()) for params in all_params]
215 mh = mm.metrics.create()
216 summary = mh.compute_many(accumulators, metrics=mm.metrics.motchallenge_metrics, names=names)
217 strsummary = mm.io.render_summary(summary, formatters=mh.formatters, namemap=mm.io.motchallenge_metric_names)
218 print(strsummary)
219 return summary

Callers

nothing calls this directly

Calls 2

formatMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected