Esempio n. 1
0
 def mean_volume_ratio(self, prediction, target):
     return mean_metric(prediction, target, self.volume_ratio)
Esempio n. 2
0
 def mean_false_negatives(self, prediction, target):
     return mean_metric(
         prediction, target, lambda p, t: self.false_negatives_map(p, t).sum()
     )
Esempio n. 3
0
 def mean_true_positives(self, prediction, target):
     return mean_metric(
         prediction, target, lambda p, t: self.true_positives_map(p, t).sum()
     )
Esempio n. 4
0
 def mean_dice_loss(self, prediction, target):
     return mean_metric(prediction, target, self.dice_loss)
Esempio n. 5
0
 def mean_amount_of_far_points(self, prediction, target):
     return mean_metric(prediction, target, self.batch_amount_of_far_points)
Esempio n. 6
0
 def mean_average_hausdorff_distance(self, prediction, target):
     return mean_metric(prediction, target,
                        self.batch_average_hausdorff_distance)