[][src]Struct cifar_ten::Cifar10

pub struct Cifar10<'a> { /* fields omitted */ }

Data structure used to specify where/how the CIFAR-10 binary data is parsed

Implementations

impl<'a> Cifar10<'a>[src]

pub fn default() -> Self[src]

Returns the default struct, looking in the "./data/" directory with default binary names

pub fn base_path(self, base_path: &'a str) -> Self[src]

Manually set the base path

pub fn cifar_data_path(self, cifar_data_path: &'a str) -> Self[src]

Manually set the path for the CIFAR-10 data

pub fn show_images(self, show_images: bool) -> Self[src]

If the show feature is enabled, create a window displaying the image

pub fn encode_one_hot(self, encode_one_hot: bool) -> Self[src]

Choose if the labels return is in one-hot format or not (default yes)

pub fn training_bin_paths(self, training_bin_paths: Vec<&'a str>) -> Self[src]

Manually set the path to the training data binaries

pub fn testing_bin_paths(self, testing_bin_paths: Vec<&'a str>) -> Self[src]

Manually set the path to the testing data binaries

pub fn num_records_train(self, num_records_train: usize) -> Self[src]

Set the number of records in the training set (default 50_000)

pub fn num_records_test(self, num_records_test: usize) -> Self[src]

Set the number of records in the training set (default 10_000)

pub fn build(
    self
) -> Result<(Array4<u8>, Array2<u8>, Array4<u8>, Array2<u8>), Box<dyn Error>>
[src]

Returns the array tuple using the specified options in Array4/2 form

pub fn build_as_flat_f32(
    self
) -> Result<(Array2<f32>, Array2<f32>, Array2<f32>, Array2<f32>), Box<dyn Error>>
[src]

Returns the array tuple using the specified options in Array2 form

Trait Implementations

impl<'a> Debug for Cifar10<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Cifar10<'a>

impl<'a> Send for Cifar10<'a>

impl<'a> Sync for Cifar10<'a>

impl<'a> Unpin for Cifar10<'a>

impl<'a> UnwindSafe for Cifar10<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,