pub struct MetaLearningConfig {Show 18 fields
pub algorithm: MetaLearningAlgorithm,
pub inner_steps: usize,
pub outer_steps: usize,
pub meta_learning_rate: f64,
pub inner_learning_rate: f64,
pub task_batch_size: usize,
pub support_set_size: usize,
pub query_set_size: usize,
pub second_order: bool,
pub gradient_clip: f64,
pub adaptation_strategies: Vec<AdaptationStrategy>,
pub transfer_settings: TransferLearningSettings,
pub continual_settings: ContinualLearningSettings,
pub multitask_settings: MultiTaskSettings,
pub few_shot_settings: FewShotSettings,
pub enable_meta_regularization: bool,
pub meta_regularization_strength: f64,
pub task_sampling_strategy: TaskSamplingStrategy,
}Expand description
Meta-learning configuration
Fields§
§algorithm: MetaLearningAlgorithmMeta-learning algorithm
inner_steps: usizeNumber of inner loop steps
outer_steps: usizeNumber of outer loop steps
meta_learning_rate: f64Meta-learning rate
inner_learning_rate: f64Inner learning rate
task_batch_size: usizeTask batch size
support_set_size: usizeSupport set size per task
query_set_size: usizeQuery set size per task
second_order: boolEnable second-order gradients
gradient_clip: f64Gradient clipping threshold
adaptation_strategies: Vec<AdaptationStrategy>Adaptation strategies
transfer_settings: TransferLearningSettingsTransfer learning settings
continual_settings: ContinualLearningSettingsContinual learning settings
multitask_settings: MultiTaskSettingsMulti-task settings
few_shot_settings: FewShotSettingsFew-shot learning settings
enable_meta_regularization: boolEnable meta-regularization
meta_regularization_strength: f64Meta-regularization strength
task_sampling_strategy: TaskSamplingStrategyTask sampling strategy
Trait Implementations§
Source§impl Clone for MetaLearningConfig
impl Clone for MetaLearningConfig
Source§fn clone(&self) -> MetaLearningConfig
fn clone(&self) -> MetaLearningConfig
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 MetaLearningConfig
impl RefUnwindSafe for MetaLearningConfig
impl Send for MetaLearningConfig
impl Sync for MetaLearningConfig
impl Unpin for MetaLearningConfig
impl UnwindSafe for MetaLearningConfig
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> 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.