Example #1
0
 def detailed_summary(self) -> dict:
     means, stds = self.value()
     return {
         **{f"DSC{i}": to_float(means[i])
            for i in self._report_axis},
         **{
             f"DSC_mean":
             average_list([to_float(means[i]) for i in self._report_axis])
         },
         **{f"DSC_std{i}": to_float(stds[i])
            for i in self._report_axis},
     }
Example #2
0
 def summary(self) -> dict:
     means, stds = self.value()
     report_dict = {
         f"DSC{i}": to_float(means[i])
         for i in self._report_axis
     }
     report_dict.update({"DSC_mean": average_list(report_dict.values())})
     return report_dict
Example #3
0
 def summary(self) -> dict:
     values = self.value()["Class_IoU"]
     return MeterResultDict(
         to_float({f"{k}": values[k]
                   for k in self._report_axis}))