pub struct AdvancedGenerator { /* private fields */ }
Expand description
Advanced data generator
Implementations§
Source§impl AdvancedGenerator
impl AdvancedGenerator
Sourcepub fn make_adversarial_examples(
&self,
base_dataset: &Dataset,
config: AdversarialConfig,
) -> Result<Dataset>
pub fn make_adversarial_examples( &self, base_dataset: &Dataset, config: AdversarialConfig, ) -> Result<Dataset>
Generate adversarial examples
Sourcepub fn make_anomaly_dataset(
&self,
n_samples: usize,
n_features: usize,
config: AnomalyConfig,
) -> Result<Dataset>
pub fn make_anomaly_dataset( &self, n_samples: usize, n_features: usize, config: AnomalyConfig, ) -> Result<Dataset>
Generate anomaly detection dataset
Sourcepub fn make_multitask_dataset(
&self,
n_samples: usize,
config: MultiTaskConfig,
) -> Result<MultiTaskDataset>
pub fn make_multitask_dataset( &self, n_samples: usize, config: MultiTaskConfig, ) -> Result<MultiTaskDataset>
Generate multi-task learning dataset
Sourcepub fn make_domain_adaptation_dataset(
&self,
n_samples_per_domain: usize,
n_features: usize,
n_classes: usize,
config: DomainAdaptationConfig,
) -> Result<DomainAdaptationDataset>
pub fn make_domain_adaptation_dataset( &self, n_samples_per_domain: usize, n_features: usize, n_classes: usize, config: DomainAdaptationConfig, ) -> Result<DomainAdaptationDataset>
Generate domain adaptation dataset
Sourcepub fn make_few_shot_dataset(
&self,
n_way: usize,
k_shot: usize,
n_query: usize,
n_episodes: usize,
n_features: usize,
) -> Result<FewShotDataset>
pub fn make_few_shot_dataset( &self, n_way: usize, k_shot: usize, n_query: usize, n_episodes: usize, n_features: usize, ) -> Result<FewShotDataset>
Generate few-shot learning dataset
Sourcepub fn make_continual_learning_dataset(
&self,
n_tasks: usize,
n_samples_per_task: usize,
n_features: usize,
n_classes: usize,
concept_drift_strength: f64,
) -> Result<ContinualLearningDataset>
pub fn make_continual_learning_dataset( &self, n_tasks: usize, n_samples_per_task: usize, n_features: usize, n_classes: usize, concept_drift_strength: f64, ) -> Result<ContinualLearningDataset>
Generate continual learning dataset with concept drift
Auto Trait Implementations§
impl Freeze for AdvancedGenerator
impl RefUnwindSafe for AdvancedGenerator
impl Send for AdvancedGenerator
impl Sync for AdvancedGenerator
impl Unpin for AdvancedGenerator
impl UnwindSafe for AdvancedGenerator
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> 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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.