Solve conflic with num-traits (#130)
* Solve conflic with num-traits * Fix clippy warnings Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -67,14 +67,14 @@ pub(crate) fn serialize_data<X: RealNumber, Y: RealNumber>(
|
||||
.data
|
||||
.iter()
|
||||
.copied()
|
||||
.flat_map(|f| f.to_f32_bits().to_le_bytes().to_vec().into_iter())
|
||||
.flat_map(|f| f.to_f32_bits().to_le_bytes().to_vec())
|
||||
.collect();
|
||||
file.write_all(&x)?;
|
||||
let y: Vec<u8> = dataset
|
||||
.target
|
||||
.iter()
|
||||
.copied()
|
||||
.flat_map(|f| f.to_f32_bits().to_le_bytes().to_vec().into_iter())
|
||||
.flat_map(|f| f.to_f32_bits().to_le_bytes().to_vec())
|
||||
.collect();
|
||||
file.write_all(&y)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user