pub struct MultiTaskDiscriminantLearningConfig {Show 13 fields
pub n_shared_components: Option<usize>,
pub n_task_components: Option<usize>,
pub sharing_penalty: Float,
pub task_penalty: Float,
pub base_discriminant: String,
pub task_weighting: String,
pub normalize_weights: bool,
pub max_iter: usize,
pub tol: Float,
pub warm_start: bool,
pub random_state: Option<u64>,
pub lda_config: LinearDiscriminantAnalysisConfig,
pub qda_config: QuadraticDiscriminantAnalysisConfig,
}Expand description
Configuration for multi-task discriminant learning
Fields§
Number of shared discriminant components
n_task_components: Option<usize>Number of task-specific components per task
sharing_penalty: FloatRegularization parameter for shared components (higher = more sharing)
task_penalty: FloatRegularization parameter for task-specific components
base_discriminant: StringBase discriminant type (“lda” or “qda”)
task_weighting: StringTask weighting strategy (“uniform”, “proportional”, “inverse”)
normalize_weights: boolWhether to normalize task weights
max_iter: usizeMaximum iterations for optimization
tol: FloatConvergence tolerance
warm_start: boolWhether to use warm start for new tasks
random_state: Option<u64>Random state for reproducible results
lda_config: LinearDiscriminantAnalysisConfigLDA configuration for base classifiers
qda_config: QuadraticDiscriminantAnalysisConfigQDA configuration for base classifiers
Trait Implementations§
Source§impl Clone for MultiTaskDiscriminantLearningConfig
impl Clone for MultiTaskDiscriminantLearningConfig
Source§fn clone(&self) -> MultiTaskDiscriminantLearningConfig
fn clone(&self) -> MultiTaskDiscriminantLearningConfig
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 MultiTaskDiscriminantLearningConfig
impl RefUnwindSafe for MultiTaskDiscriminantLearningConfig
impl Send for MultiTaskDiscriminantLearningConfig
impl Sync for MultiTaskDiscriminantLearningConfig
impl Unpin for MultiTaskDiscriminantLearningConfig
impl UnwindSafe for MultiTaskDiscriminantLearningConfig
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