[−][src]Struct cifar_ten::Cifar10
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]
self
) -> Result<(Array4<u8>, Array2<u8>, Array4<u8>, Array2<u8>), Box<dyn Error>>
Returns the array tuple using the specified options in Array4/2
pub fn build_as_flat_f32(
self
) -> Result<(Array2<f32>, Array2<f32>, Array2<f32>, Array2<f32>), Box<dyn Error>>
[src]
self
) -> Result<(Array2<f32>, Array2<f32>, Array2<f32>, Array2<f32>), Box<dyn Error>>
Returns the array tuple using the specified options in Array2
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,