pub enum TaskRegularization {
None,
L2 {
beta: Float,
},
L1 {
beta: Float,
},
NuclearNorm {
beta: Float,
},
GroupSparsity {
beta: Float,
},
Custom {
beta: Float,
regularizer: fn(&Array2<Float>) -> Float,
},
}Expand description
Cross-task regularization strategies for multi-task learning
Variants§
None
No cross-task regularization (independent tasks)
L2
L2 regularization on task weight differences
L1
L1 regularization promoting sparsity across tasks
NuclearNorm
Nuclear norm regularization on weight matrix (low-rank)
GroupSparsity
Group sparsity regularization
Custom
Custom regularization function
Trait Implementations§
Source§impl Clone for TaskRegularization
impl Clone for TaskRegularization
Source§fn clone(&self) -> TaskRegularization
fn clone(&self) -> TaskRegularization
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 TaskRegularization
impl Debug for TaskRegularization
Auto Trait Implementations§
impl Freeze for TaskRegularization
impl RefUnwindSafe for TaskRegularization
impl Send for TaskRegularization
impl Sync for TaskRegularization
impl Unpin for TaskRegularization
impl UnwindSafe for TaskRegularization
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