pub struct PredictivePrefetchDataset<T, D>{ /* private fields */ }Expand description
Dataset wrapper that provides predictive prefetching
Implementations§
Source§impl<T, D> PredictivePrefetchDataset<T, D>
impl<T, D> PredictivePrefetchDataset<T, D>
Sourcepub fn with_config(dataset: D, config: PrefetchConfig) -> Self
pub fn with_config(dataset: D, config: PrefetchConfig) -> Self
Create with custom configuration
Sourcepub fn stats(&self) -> AccessStats
pub fn stats(&self) -> AccessStats
Get access statistics
Sourcepub fn dominant_pattern(&self) -> Option<AccessPattern>
pub fn dominant_pattern(&self) -> Option<AccessPattern>
Get the dominant access pattern
Trait Implementations§
Source§impl<T, D> Dataset<T> for PredictivePrefetchDataset<T, D>
impl<T, D> Dataset<T> for PredictivePrefetchDataset<T, D>
Auto Trait Implementations§
impl<T, D> Freeze for PredictivePrefetchDataset<T, D>
impl<T, D> !RefUnwindSafe for PredictivePrefetchDataset<T, D>
impl<T, D> Send for PredictivePrefetchDataset<T, D>
impl<T, D> Sync for PredictivePrefetchDataset<T, D>
impl<T, D> Unpin for PredictivePrefetchDataset<T, D>
impl<T, D> UnsafeUnpin for PredictivePrefetchDataset<T, D>
impl<T, D> !UnwindSafe for PredictivePrefetchDataset<T, D>
Blanket Implementations§
Source§impl<T, D> AdvancedStatisticsExt<T> for D
impl<T, D> AdvancedStatisticsExt<T> for D
Source§fn compute_multivariate_statistics(
&self,
) -> Result<MultivariateStatistics<T>, TensorError>
fn compute_multivariate_statistics( &self, ) -> Result<MultivariateStatistics<T>, TensorError>
Compute advanced multivariate statistics
Source§fn compute_pca(&self, n_components: usize) -> Result<PCAResult<T>, TensorError>
fn compute_pca(&self, n_components: usize) -> Result<PCAResult<T>, TensorError>
Perform principal component analysis
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, D> CacheExt<T> for Dwhere
D: Dataset<T>,
impl<T, D> CacheExt<T> for Dwhere
D: Dataset<T>,
Source§fn cached(self, capacity: usize) -> CachedDataset<T, Self>
fn cached(self, capacity: usize) -> CachedDataset<T, Self>
Wrap this dataset with caching
Source§fn cached_with_warming(
self,
capacity: usize,
strategy: WarmingStrategy,
) -> Result<CachedDataset<T, Self>>
fn cached_with_warming( self, capacity: usize, strategy: WarmingStrategy, ) -> Result<CachedDataset<T, Self>>
Wrap this dataset with caching and pre-warm the cache
Source§impl<T, D> DataQualityExt<T> for Dwhere
D: Dataset<T>,
impl<T, D> DataQualityExt<T> for Dwhere
D: Dataset<T>,
Source§fn analyze_quality(&self, name: impl Into<String>) -> Result<DataQualityMetrics>
fn analyze_quality(&self, name: impl Into<String>) -> Result<DataQualityMetrics>
Analyze data quality
Source§impl<T, D> DatasetExt<T> for Dwhere
D: Dataset<T>,
impl<T, D> DatasetExt<T> for Dwhere
D: Dataset<T>,
Source§fn transform<Tr: Transform<T>>(
self,
transform: Tr,
) -> TransformedDataset<T, Self, Tr>
fn transform<Tr: Transform<T>>( self, transform: Tr, ) -> TransformedDataset<T, Self, Tr>
Apply a transform to this dataset
Source§impl<T, D> DatasetShardingExt<T> for Dwhere
D: Dataset<T>,
impl<T, D> DatasetShardingExt<T> for Dwhere
D: Dataset<T>,
Source§fn shard(self, config: ShardConfig) -> Result<ShardedDataset<T, Self>>
fn shard(self, config: ShardConfig) -> Result<ShardedDataset<T, Self>>
Shard this dataset for distributed training
Source§fn shard_round_robin(
self,
world_size: usize,
rank: usize,
) -> Result<ShardedDataset<T, Self>>
fn shard_round_robin( self, world_size: usize, rank: usize, ) -> Result<ShardedDataset<T, Self>>
Create a round-robin sharded dataset
Source§fn shard_contiguous(
self,
world_size: usize,
rank: usize,
) -> Result<ShardedDataset<T, Self>>
fn shard_contiguous( self, world_size: usize, rank: usize, ) -> Result<ShardedDataset<T, Self>>
Create a contiguous sharded dataset
Source§fn shard_shuffled(
self,
world_size: usize,
rank: usize,
seed: u64,
) -> Result<ShardedDataset<T, Self>>
fn shard_shuffled( self, world_size: usize, rank: usize, seed: u64, ) -> Result<ShardedDataset<T, Self>>
Create a shuffled sharded dataset with a seed
Source§impl<T, D> DatasetStatisticsExt<T> for D
impl<T, D> DatasetStatisticsExt<T> for D
Source§fn compute_statistics(&self) -> Result<DatasetStats<T>, TensorError>
fn compute_statistics(&self) -> Result<DatasetStats<T>, TensorError>
Compute statistics with default configuration
Source§fn compute_statistics_with_config(
&self,
config: StatisticsConfig,
) -> Result<DatasetStats<T>, TensorError>
fn compute_statistics_with_config( &self, config: StatisticsConfig, ) -> Result<DatasetStats<T>, TensorError>
Compute statistics with custom configuration
Source§impl<T, D> DatasetUtilsExt<T> for Dwhere
D: Dataset<T>,
impl<T, D> DatasetUtilsExt<T> for Dwhere
D: Dataset<T>,
Source§impl<T, D> DatasetValidationExt<T> for D
impl<T, D> DatasetValidationExt<T> for D
fn validate( &self, validator: &DataValidator<T>, ) -> Result<ValidationResult, TensorError>
fn validate_with_config( &self, config: ValidationConfig, ) -> Result<ValidationResult, TensorError>
fn is_valid(&self) -> Result<bool, TensorError>
Source§impl<T, D> DatasetVisualizationExt<T> for Dwhere
D: Dataset<T>,
impl<T, D> DatasetVisualizationExt<T> for Dwhere
D: Dataset<T>,
Source§fn sample_preview(&self, num_samples: usize) -> Result<SamplePreview>
fn sample_preview(&self, num_samples: usize) -> Result<SamplePreview>
Create a sample preview
Source§fn feature_distribution(
&self,
max_samples: Option<usize>,
) -> Result<DistributionInfo<T>>
fn feature_distribution( &self, max_samples: Option<usize>, ) -> Result<DistributionInfo<T>>
Get feature distribution information
Source§fn class_distribution(&self) -> Result<ClassDistribution>
fn class_distribution(&self) -> Result<ClassDistribution>
Get class distribution
Source§fn feature_histogram(
&self,
feature_index: usize,
bins: usize,
) -> Result<FeatureHistogram<T>>
fn feature_histogram( &self, feature_index: usize, bins: usize, ) -> Result<FeatureHistogram<T>>
Create a histogram for a specific feature
Source§fn analyze_augmentation_effects<Tr>(
&self,
transform: &Tr,
num_samples: usize,
) -> Result<AugmentationEffects<T>>
fn analyze_augmentation_effects<Tr>( &self, transform: &Tr, num_samples: usize, ) -> Result<AugmentationEffects<T>>
Analyze the effects of a transform on dataset samples
Source§impl<T, D> FederatedDatasetExt<T> for D
impl<T, D> FederatedDatasetExt<T> for D
Source§fn federated_client(
self,
config: ClientConfig,
) -> FederatedClientDataset<T, Self>
fn federated_client( self, config: ClientConfig, ) -> FederatedClientDataset<T, Self>
Create a federated client dataset
Source§fn partition_federated(
self,
num_clients: usize,
strategy: PartitioningStrategy,
seed: u64,
) -> Result<Vec<FederatedClientDataset<T, ClientIndexedDataset<T, Self>>>>where
Self: Clone,
fn partition_federated(
self,
num_clients: usize,
strategy: PartitioningStrategy,
seed: u64,
) -> Result<Vec<FederatedClientDataset<T, ClientIndexedDataset<T, Self>>>>where
Self: Clone,
Partition dataset for federated learning
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, D> ReproducibilityExt<T> for D
impl<T, D> ReproducibilityExt<T> for D
Source§fn deterministic(self, seed: u64) -> DeterministicDataset<T, Self>
fn deterministic(self, seed: u64) -> DeterministicDataset<T, Self>
Make the dataset deterministic with a seed
Source§fn sequential(self) -> DeterministicDataset<T, Self>
fn sequential(self) -> DeterministicDataset<T, Self>
Make the dataset sequential
Source§fn reverse(self) -> DeterministicDataset<T, Self>
fn reverse(self) -> DeterministicDataset<T, Self>
Make the dataset reverse ordered