Method
get_summary
(accs, names, metrics=('mota', 'num_switches', 'idp', 'idr', 'idf1', 'precision', 'recall'))
Source from the content-addressed store, hash-verified
| 81 | |
| 82 | @staticmethod |
| 83 | def get_summary(accs, names, metrics=('mota', 'num_switches', 'idp', 'idr', 'idf1', 'precision', 'recall')): |
| 84 | names = copy.deepcopy(names) |
| 85 | if metrics is None: |
| 86 | metrics = mm.metrics.motchallenge_metrics |
| 87 | metrics = copy.deepcopy(metrics) |
| 88 | |
| 89 | mh = mm.metrics.create() |
| 90 | summary = mh.compute_many( |
| 91 | accs, |
| 92 | metrics=metrics, |
| 93 | names=names, |
| 94 | generate_overall=True |
| 95 | ) |
| 96 | |
| 97 | return summary |
| 98 | |
| 99 | @staticmethod |
| 100 | def save_summary(summary, filename): |
Tested by
no test coverage detected