Struct mnist::NormalizedMnist
source · pub struct NormalizedMnist {
pub trn_img: Vec<f32>,
pub trn_lbl: Vec<u8>,
pub val_img: Vec<f32>,
pub val_lbl: Vec<u8>,
pub tst_img: Vec<f32>,
pub tst_lbl: Vec<u8>,
}
Expand description
Struct containing (normalized) image and label vectors for the training, validation, and test sets.
Fields§
§trn_img: Vec<f32>
§trn_lbl: Vec<u8>
§val_img: Vec<f32>
§val_lbl: Vec<u8>
§tst_img: Vec<f32>
§tst_lbl: Vec<u8>
Implementations§
source§impl NormalizedMnist
impl NormalizedMnist
sourcepub fn new(mnist: Mnist) -> NormalizedMnist
pub fn new(mnist: Mnist) -> NormalizedMnist
Create a NormalizedMnist
by consuming an Mnist
.
Examples
let normalized_mnist: NormalizedMnist = MnistBuilder::new()
.finalize()
.normalize();
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for NormalizedMnist
impl Send for NormalizedMnist
impl Sync for NormalizedMnist
impl Unpin for NormalizedMnist
impl UnwindSafe for NormalizedMnist
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more