MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / update

Method update

PATH/core/utils.py:847–850  ·  view source on GitHub ↗
(self, label_preds, label_trues)

Source from the content-addressed store, hash-verified

845 return hist
846
847 def update(self, label_preds, label_trues):
848 self.reduced_confusion_matrix = None
849 for lt, lp in zip(label_trues, label_preds):
850 self.confusion_matrix += self._fast_hist(lt.flatten(), lp.flatten(), self.n_classes)
851
852 def reduce_scores(self):
853 hist = self.confusion_matrix

Callers

nothing calls this directly

Calls 1

_fast_histMethod · 0.95

Tested by

no test coverage detected