Struct linfa_elasticnet::ElasticNetValidParams
source · [−]pub struct ElasticNetValidParams<F> { /* private fields */ }
Expand description
A verified hyper-parameter set ready for the estimation of a ElasticNet regression model
See ElasticNetParams
for more informations.
Implementations
sourceimpl<F: Float> ElasticNetValidParams<F>
impl<F: Float> ElasticNetValidParams<F>
Trait Implementations
sourceimpl<F: Clone> Clone for ElasticNetValidParams<F>
impl<F: Clone> Clone for ElasticNetValidParams<F>
sourcefn clone(&self) -> ElasticNetValidParams<F>
fn clone(&self) -> ElasticNetValidParams<F>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<F: Debug> Debug for ElasticNetValidParams<F>
impl<F: Debug> Debug for ElasticNetValidParams<F>
sourceimpl<F, D, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, ElasticNetError> for ElasticNetValidParams<F> where
F: Float,
D: Data<Elem = F>,
T: AsSingleTargets<Elem = F>,
impl<F, D, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, ElasticNetError> for ElasticNetValidParams<F> where
F: Float,
D: Data<Elem = F>,
T: AsSingleTargets<Elem = F>,
sourcefn fit(
&self,
dataset: &DatasetBase<ArrayBase<D, Ix2>, T>
) -> Result<Self::Object>
fn fit(
&self,
dataset: &DatasetBase<ArrayBase<D, Ix2>, T>
) -> Result<Self::Object>
Fit an elastic net model given a feature matrix x
and a target
variable y
.
The feature matrix x
must have shape (n_samples, n_features)
The target variable y
must have shape (n_samples)
Returns a FittedElasticNet
object which contains the fitted
parameters and can be used to predict
values of the target variable
for new feature values.
type Object = ElasticNet<F>
sourceimpl<F: PartialEq> PartialEq<ElasticNetValidParams<F>> for ElasticNetValidParams<F>
impl<F: PartialEq> PartialEq<ElasticNetValidParams<F>> for ElasticNetValidParams<F>
sourcefn eq(&self, other: &ElasticNetValidParams<F>) -> bool
fn eq(&self, other: &ElasticNetValidParams<F>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ElasticNetValidParams<F>) -> bool
fn ne(&self, other: &ElasticNetValidParams<F>) -> bool
This method tests for !=
.
impl<F> StructuralPartialEq for ElasticNetValidParams<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for ElasticNetValidParams<F> where
F: RefUnwindSafe,
impl<F> Send for ElasticNetValidParams<F> where
F: Send,
impl<F> Sync for ElasticNetValidParams<F> where
F: Sync,
impl<F> Unpin for ElasticNetValidParams<F> where
F: Unpin,
impl<F> UnwindSafe for ElasticNetValidParams<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more