pub enum RegularizationStrategy {
None,
L1(Float),
L2(Float),
ElasticNet {
alpha: Float,
l1_ratio: Float,
},
GroupLasso {
alpha: Float,
},
NuclearNorm {
alpha: Float,
},
TaskClustering {
n_clusters: usize,
intra_cluster_alpha: Float,
inter_cluster_alpha: Float,
},
TaskRelationship {
relationship_strength: Float,
similarity_threshold: Float,
},
MetaLearning {
meta_learning_rate: Float,
inner_learning_rate: Float,
n_inner_steps: usize,
},
}Expand description
Regularization strategies for multi-task learning
Variants§
None
No regularization
L1(Float)
L1 regularization (Lasso)
L2(Float)
L2 regularization (Ridge)
ElasticNet
Elastic Net (L1 + L2)
GroupLasso
Group Lasso
NuclearNorm
Nuclear norm regularization
TaskClustering
Task clustering regularization
TaskRelationship
Task relationship learning
MetaLearning
Meta-learning for multi-task
Trait Implementations§
Source§impl Clone for RegularizationStrategy
impl Clone for RegularizationStrategy
Source§fn clone(&self) -> RegularizationStrategy
fn clone(&self) -> RegularizationStrategy
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 moreSource§impl Debug for RegularizationStrategy
impl Debug for RegularizationStrategy
Source§impl Default for RegularizationStrategy
impl Default for RegularizationStrategy
Source§fn default() -> RegularizationStrategy
fn default() -> RegularizationStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for RegularizationStrategy
impl PartialEq for RegularizationStrategy
impl StructuralPartialEq for RegularizationStrategy
Auto Trait Implementations§
impl Freeze for RegularizationStrategy
impl RefUnwindSafe for RegularizationStrategy
impl Send for RegularizationStrategy
impl Sync for RegularizationStrategy
impl Unpin for RegularizationStrategy
impl UnwindSafe for RegularizationStrategy
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 more