We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c013dd commit e0e4791Copy full SHA for e0e4791
src/dataset/mod.rs
@@ -12,6 +12,7 @@ use std::io;
12
use std::io::prelude::*;
13
14
/// Dataset
15
+#[derive(Debug)]
16
pub struct Dataset<X, Y> {
17
/// data in one-dimensional array.
18
pub data: Vec<X>,
@@ -102,6 +103,7 @@ pub(crate) fn deserialize_data(
102
103
for _ in 0..(num_samples) {
104
buffer.copy_from_slice(&bytes[c..(c + 4)]);
105
y.push(f32::from_bits(u32::from_le_bytes(buffer)));
106
+ c += 4;
107
}
108
109
Ok((x, y, num_samples, num_features))
0 commit comments