Skip to main content

DatasetVisualizationExt

Trait DatasetVisualizationExt 

Source
pub trait DatasetVisualizationExt<T>: Dataset<T> + Sized {
    // Provided methods
    fn sample_preview(&self, num_samples: usize) -> Result<SamplePreview>
       where T: Clone + Default + Zero + Send + Sync + 'static { ... }
    fn feature_distribution(
        &self,
        max_samples: Option<usize>,
    ) -> Result<DistributionInfo<T>>
       where T: Clone + Default + Zero + Send + Sync + 'static + Float { ... }
    fn class_distribution(&self) -> Result<ClassDistribution>
       where T: Clone + Default + Zero + Send + Sync + 'static { ... }
    fn feature_histogram(
        &self,
        feature_index: usize,
        bins: usize,
    ) -> Result<FeatureHistogram<T>>
       where T: Clone + Default + Zero + Send + Sync + 'static + Float + PartialOrd { ... }
    fn analyze_augmentation_effects<Tr>(
        &self,
        transform: &Tr,
        num_samples: usize,
    ) -> Result<AugmentationEffects<T>>
       where T: Clone + Default + Zero + Send + Sync + 'static + Float + PartialOrd,
             Tr: Transform<T> { ... }
}
Expand description

Extension trait for easy visualization access

Provided Methods§

Source

fn sample_preview(&self, num_samples: usize) -> Result<SamplePreview>
where T: Clone + Default + Zero + Send + Sync + 'static,

Create a sample preview

Source

fn feature_distribution( &self, max_samples: Option<usize>, ) -> Result<DistributionInfo<T>>
where T: Clone + Default + Zero + Send + Sync + 'static + Float,

Get feature distribution information

Source

fn class_distribution(&self) -> Result<ClassDistribution>
where T: Clone + Default + Zero + Send + Sync + 'static,

Get class distribution

Source

fn feature_histogram( &self, feature_index: usize, bins: usize, ) -> Result<FeatureHistogram<T>>
where T: Clone + Default + Zero + Send + Sync + 'static + Float + PartialOrd,

Create a histogram for a specific feature

Source

fn analyze_augmentation_effects<Tr>( &self, transform: &Tr, num_samples: usize, ) -> Result<AugmentationEffects<T>>
where T: Clone + Default + Zero + Send + Sync + 'static + Float + PartialOrd, Tr: Transform<T>,

Analyze the effects of a transform on dataset samples

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§