Exemplo n.º 1
0
 def mean_volume_ratio(self, prediction, target):
     return mean_metric(prediction, target, self.volume_ratio)
Exemplo 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()
     )
Exemplo 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()
     )
Exemplo n.º 4
0
 def mean_dice_loss(self, prediction, target):
     return mean_metric(prediction, target, self.dice_loss)
Exemplo n.º 5
0
 def mean_amount_of_far_points(self, prediction, target):
     return mean_metric(prediction, target, self.batch_amount_of_far_points)
Exemplo n.º 6
0
 def mean_average_hausdorff_distance(self, prediction, target):
     return mean_metric(prediction, target,
                        self.batch_average_hausdorff_distance)