Struct mnist::NormalizedMnist[][src]

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

Create a NormalizedMnist by consuming an Mnist.

Examples
let normalized_mnist: NormalizedMnist = MnistBuilder::new()
   .finalize()
   .normalize();

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.