Skip to content

Commit

Permalink
returned iter + map back
Browse files Browse the repository at this point in the history
  • Loading branch information
cospectrum committed May 10, 2024
1 parent caf0254 commit eb06348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metrics_regression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ pub trait SingleTargetRegression<F: Float, T: AsSingleTargets<Elem = F>>:
let max_error = self
.as_single_targets()
.sub(&compare_to.as_single_targets())
.mapv_into(|x| x.abs())
.into_iter()
.iter()
.map(|x| x.abs())
.fold(F::neg_infinity(), F::max);
Ok(max_error)
}
Expand Down

0 comments on commit eb06348

Please sign in to comment.