Victoria Oberascher commited on
Commit
a3751fe
·
1 Parent(s): a946f7d
Files changed (1) hide show
  1. horizonmetrics.py +6 -5
horizonmetrics.py CHANGED
@@ -349,6 +349,12 @@ class horizonmetrics(evaluate.Metric):
349
  List of ground truth horizons.
350
 
351
  """
 
 
 
 
 
 
352
  self.predictions = predictions
353
  self.ground_truth_det = references
354
  self.slope_error_list = []
@@ -361,11 +367,6 @@ class horizonmetrics(evaluate.Metric):
361
  self.slope_error_list.append(slope_error)
362
  self.midpoint_error_list.append(midpoint_error)
363
 
364
- # does not impact the metric, but is required for the interface x_x
365
- super(evaluate.Metric, self).add(prediction=predictions,
366
- references=references,
367
- **kwargs)
368
-
369
  def _compute(self):
370
  """
371
  Compute the horizon error across the sequence.
 
349
  List of ground truth horizons.
350
 
351
  """
352
+
353
+ # does not impact the metric, but is required for the interface x_x
354
+ super(evaluate.Metric, self).add(prediction=predictions,
355
+ references=references,
356
+ **kwargs)
357
+
358
  self.predictions = predictions
359
  self.ground_truth_det = references
360
  self.slope_error_list = []
 
367
  self.slope_error_list.append(slope_error)
368
  self.midpoint_error_list.append(midpoint_error)
369
 
 
 
 
 
 
370
  def _compute(self):
371
  """
372
  Compute the horizon error across the sequence.