pub struct TrainedMultiTaskDiscriminantLearning { /* private fields */ }Expand description
Trained multi-task discriminant learning model
Implementations§
Source§impl TrainedMultiTaskDiscriminantLearning
impl TrainedMultiTaskDiscriminantLearning
Get the shared components
Sourcepub fn task_components(&self, task_id: usize) -> Option<&Array2<Float>>
pub fn task_components(&self, task_id: usize) -> Option<&Array2<Float>>
Get task-specific components for a task
Sourcepub fn global_classes(&self) -> &[i32]
pub fn global_classes(&self) -> &[i32]
Get global classes
Sourcepub fn task_weights(&self) -> &[Float] ⓘ
pub fn task_weights(&self) -> &[Float] ⓘ
Get task weights
Sourcepub fn predict_task(
&self,
x: &Array2<Float>,
task_id: usize,
) -> Result<Array1<i32>>
pub fn predict_task( &self, x: &Array2<Float>, task_id: usize, ) -> Result<Array1<i32>>
Predict for a specific task
Sourcepub fn predict_proba_task(
&self,
x: &Array2<Float>,
task_id: usize,
) -> Result<Array2<Float>>
pub fn predict_proba_task( &self, x: &Array2<Float>, task_id: usize, ) -> Result<Array2<Float>>
Predict probabilities for a specific task
Sourcepub fn transform_task(
&self,
x: &Array2<Float>,
task_id: usize,
) -> Result<Array2<Float>>
pub fn transform_task( &self, x: &Array2<Float>, task_id: usize, ) -> Result<Array2<Float>>
Transform data for a specific task using shared and task-specific components
Transform data using only shared components
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrainedMultiTaskDiscriminantLearning
impl RefUnwindSafe for TrainedMultiTaskDiscriminantLearning
impl Send for TrainedMultiTaskDiscriminantLearning
impl Sync for TrainedMultiTaskDiscriminantLearning
impl Unpin for TrainedMultiTaskDiscriminantLearning
impl UnwindSafe for TrainedMultiTaskDiscriminantLearning
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 more