pub struct FittedMultiTaskElasticNetCV<F> { /* private fields */ }Expand description
Fitted multi-task ElasticNet model with cross-validated (alpha, l1_ratio).
Stores the selected hyperparameters, learned coefficient matrix (shape
(n_tasks, n_features), the sklearn coef_ layout), and per-task intercept
vector.
Implementations§
Source§impl<F: Float> FittedMultiTaskElasticNetCV<F>
impl<F: Float> FittedMultiTaskElasticNetCV<F>
Sourcepub fn alpha(&self) -> F
pub fn alpha(&self) -> F
Returns the alpha value selected by cross-validation (sklearn alpha_).
Sourcepub fn l1_ratio(&self) -> F
pub fn l1_ratio(&self) -> F
Returns the l1_ratio selected by cross-validation (sklearn l1_ratio_).
Trait Implementations§
Source§impl<F: Clone> Clone for FittedMultiTaskElasticNetCV<F>
impl<F: Clone> Clone for FittedMultiTaskElasticNetCV<F>
Source§fn clone(&self) -> FittedMultiTaskElasticNetCV<F>
fn clone(&self) -> FittedMultiTaskElasticNetCV<F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug> Debug for FittedMultiTaskElasticNetCV<F>
impl<F: Debug> Debug for FittedMultiTaskElasticNetCV<F>
Source§impl<F: Float + Send + Sync + ScalarOperand + 'static> Predict<ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for FittedMultiTaskElasticNetCV<F>
impl<F: Float + Send + Sync + ScalarOperand + 'static> Predict<ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for FittedMultiTaskElasticNetCV<F>
Source§fn predict(&self, x: &Array2<F>) -> Result<Array2<F>, FerroError>
fn predict(&self, x: &Array2<F>) -> Result<Array2<F>, FerroError>
Predict target values for the given feature matrix.
Computes X · coefᵀ + intercept (broadcast per task column), returning
an (n_samples, n_tasks) array.
§Errors
Returns FerroError::ShapeMismatch if the number of features does not
match the fitted model.
Source§type Output = ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>
type Output = ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>
The prediction output type (e.g.,
ndarray::Array1<F> or ndarray::Array1<usize>).Source§type Error = FerroError
type Error = FerroError
The error type returned by
predict.Auto Trait Implementations§
impl<F> Freeze for FittedMultiTaskElasticNetCV<F>where
F: Freeze,
impl<F> RefUnwindSafe for FittedMultiTaskElasticNetCV<F>where
F: RefUnwindSafe,
impl<F> Send for FittedMultiTaskElasticNetCV<F>where
F: Send,
impl<F> Sync for FittedMultiTaskElasticNetCV<F>where
F: Sync,
impl<F> Unpin for FittedMultiTaskElasticNetCV<F>where
F: Unpin,
impl<F> UnsafeUnpin for FittedMultiTaskElasticNetCV<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FittedMultiTaskElasticNetCV<F>where
F: UnwindSafe + RefUnwindSafe,
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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