Struct mnist::Mnist [−][src]
pub struct Mnist {
pub trn_img: Vec<u8>,
pub trn_lbl: Vec<u8>,
pub val_img: Vec<u8>,
pub val_lbl: Vec<u8>,
pub tst_img: Vec<u8>,
pub tst_lbl: Vec<u8>,
}
Expand description
Struct containing image and label vectors for the training, validation, and test sets.
Fields
trn_img: Vec<u8>
The training images vector.
trn_lbl: Vec<u8>
The training labels vector.
val_img: Vec<u8>
The validation images vector.
val_lbl: Vec<u8>
The validation labels vector.
tst_img: Vec<u8>
The test images vector.
tst_lbl: Vec<u8>
The test labels vector.
Implementations
Create a NormalizedMnist
by consuming an Mnist
.
Examples
let normalized_mnist: NormalizedMnist = MnistBuilder::new()
.finalize()
.normalize();