type error.
This commit is contained in:
@@ -966,7 +966,7 @@ mod tests {
|
|||||||
let error: f64 = y
|
let error: f64 = y
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.zip(y_hat.into_iter())
|
.zip(y_hat.into_iter())
|
||||||
.map(|(&a, &b)| (a - b).abs())
|
.map(|(a, b)| (a - b).abs())
|
||||||
.sum();
|
.sum();
|
||||||
|
|
||||||
assert!(error <= 1.0);
|
assert!(error <= 1.0);
|
||||||
|
|||||||
Reference in New Issue
Block a user