pub struct DatasetVisualizer;Expand description
Visualization utilities for datasets
Implementations§
Source§impl DatasetVisualizer
impl DatasetVisualizer
Sourcepub fn sample_preview<T, D>(
dataset: &D,
num_samples: usize,
) -> Result<SamplePreview>
pub fn sample_preview<T, D>( dataset: &D, num_samples: usize, ) -> Result<SamplePreview>
Create a sample preview showing basic statistics and examples
Sourcepub fn feature_distribution<T, D>(
dataset: &D,
max_samples: Option<usize>,
) -> Result<DistributionInfo<T>>
pub fn feature_distribution<T, D>( dataset: &D, max_samples: Option<usize>, ) -> Result<DistributionInfo<T>>
Generate distribution information for dataset features and labels
Sourcepub fn class_distribution<T, D>(dataset: &D) -> Result<ClassDistribution>
pub fn class_distribution<T, D>(dataset: &D) -> Result<ClassDistribution>
Generate class distribution for classification datasets
Sourcepub fn feature_histogram<T, D>(
dataset: &D,
feature_index: usize,
bins: usize,
) -> Result<FeatureHistogram<T>>
pub fn feature_histogram<T, D>( dataset: &D, feature_index: usize, bins: usize, ) -> Result<FeatureHistogram<T>>
Generate a simple text-based histogram for a single feature dimension
Sourcepub fn analyze_augmentation_effects<T, D, Tr>(
dataset: &D,
transform: &Tr,
num_samples: usize,
) -> Result<AugmentationEffects<T>>
pub fn analyze_augmentation_effects<T, D, Tr>( dataset: &D, transform: &Tr, num_samples: usize, ) -> Result<AugmentationEffects<T>>
Analyze the effects of a transform on dataset samples
Sourcepub fn compare_samples<T, Tr>(
samples: &[(Tensor<T>, Tensor<T>)],
transform: &Tr,
comparison_count: usize,
) -> Result<Vec<SampleComparison<T>>>
pub fn compare_samples<T, Tr>( samples: &[(Tensor<T>, Tensor<T>)], transform: &Tr, comparison_count: usize, ) -> Result<Vec<SampleComparison<T>>>
Compare before/after samples for a specific transform
pub fn analyze_feature_changes<T>( pairs: &[BeforeAfterPair<T>], ) -> Result<FeatureChangeAnalysis<T>>
pub fn analyze_distribution_changes<T>( pairs: &[BeforeAfterPair<T>], ) -> Result<DistributionChangeAnalysis<T>>
pub fn calculate_tensor_stats<T>(tensor: &Tensor<T>) -> Result<TensorStats<T>>
pub fn calculate_change_magnitude<T>( original: &Tensor<T>, transformed: &Tensor<T>, ) -> Result<T>
Auto Trait Implementations§
impl Freeze for DatasetVisualizer
impl RefUnwindSafe for DatasetVisualizer
impl Send for DatasetVisualizer
impl Sync for DatasetVisualizer
impl Unpin for DatasetVisualizer
impl UnsafeUnpin for DatasetVisualizer
impl UnwindSafe for DatasetVisualizer
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> 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 more