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