From eb06348254b8068134c88ccc715ba8adc38f4356 Mon Sep 17 00:00:00 2001 From: Alex Severin Date: Fri, 10 May 2024 21:02:01 +0300 Subject: [PATCH] returned iter + map back --- src/metrics_regression.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/metrics_regression.rs b/src/metrics_regression.rs index f31e67496..eed90900d 100644 --- a/src/metrics_regression.rs +++ b/src/metrics_regression.rs @@ -23,8 +23,8 @@ pub trait SingleTargetRegression>: 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) }