pub struct Cifar100Dataset { /* private fields */ }Expand description
CIFAR-100 image classification dataset
Implementations§
Source§impl Cifar100Dataset
impl Cifar100Dataset
Sourcepub fn split(&self) -> Result<DatasetSplit>
pub fn split(&self) -> Result<DatasetSplit>
Sourcepub fn fine_class_name(label: i32) -> Option<&'static str>
pub fn fine_class_name(label: i32) -> Option<&'static str>
Get fine class name for a label (100 classes)
Sourcepub fn coarse_class_name(label: i32) -> Option<&'static str>
pub fn coarse_class_name(label: i32) -> Option<&'static str>
Get coarse class name for a label (20 superclasses)
Trait Implementations§
Source§impl CanonicalDataset for Cifar100Dataset
impl CanonicalDataset for Cifar100Dataset
Source§fn data(&self) -> &ArrowDataset
fn data(&self) -> &ArrowDataset
Returns the full dataset
Source§fn num_features(&self) -> usize
fn num_features(&self) -> usize
Returns the number of features (excluding label)
Source§fn num_classes(&self) -> usize
fn num_classes(&self) -> usize
Returns the number of classes (for classification datasets)
Source§fn feature_names(&self) -> &'static [&'static str]
fn feature_names(&self) -> &'static [&'static str]
Returns the feature column names
Source§fn target_name(&self) -> &'static str
fn target_name(&self) -> &'static str
Returns the label/target column name
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Returns a description of the dataset
Source§impl Clone for Cifar100Dataset
impl Clone for Cifar100Dataset
Source§fn clone(&self) -> Cifar100Dataset
fn clone(&self) -> Cifar100Dataset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Cifar100Dataset
impl !RefUnwindSafe for Cifar100Dataset
impl Send for Cifar100Dataset
impl Sync for Cifar100Dataset
impl Unpin for Cifar100Dataset
impl UnsafeUnpin for Cifar100Dataset
impl !UnwindSafe for Cifar100Dataset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.