Run cargo clippy --fix (#250)
* Run `cargo clippy --fix` * Run `cargo clippy --all-features --fix` * Fix other clippy warnings * cargo fmt Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
This commit is contained in:
+2
-10
@@ -983,11 +983,7 @@ mod tests {
|
||||
.unwrap();
|
||||
let acc = accuracy(&y, &(y_hat.iter().map(|e| e.to_i32().unwrap()).collect()));
|
||||
|
||||
assert!(
|
||||
acc >= 0.9,
|
||||
"accuracy ({}) is not larger or equal to 0.9",
|
||||
acc
|
||||
);
|
||||
assert!(acc >= 0.9, "accuracy ({acc}) is not larger or equal to 0.9");
|
||||
}
|
||||
|
||||
#[cfg_attr(
|
||||
@@ -1076,11 +1072,7 @@ mod tests {
|
||||
|
||||
let acc = accuracy(&y, &(y_hat.iter().map(|e| e.to_i32().unwrap()).collect()));
|
||||
|
||||
assert!(
|
||||
acc >= 0.9,
|
||||
"accuracy ({}) is not larger or equal to 0.9",
|
||||
acc
|
||||
);
|
||||
assert!(acc >= 0.9, "accuracy ({acc}) is not larger or equal to 0.9");
|
||||
}
|
||||
|
||||
#[cfg_attr(
|
||||
|
||||
+1
-1
@@ -662,7 +662,7 @@ mod tests {
|
||||
.unwrap();
|
||||
|
||||
let t = mean_squared_error(&y_hat, &y);
|
||||
println!("{:?}", t);
|
||||
println!("{t:?}");
|
||||
assert!(t < 2.5);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user