pub type ElasticNetValidParams<F> = ElasticNetValidParamsBase<F, false>;Expand description
A verified hyper-parameter set ready for the estimation of a ElasticNet regression model
See ElasticNetParams for more information.
Aliased Type§
pub struct ElasticNetValidParams<F> { /* private fields */ }Trait Implementations§
Source§impl<F, D, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, ElasticNetError> for ElasticNetValidParams<F>
impl<F, D, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, ElasticNetError> for ElasticNetValidParams<F>
Source§fn 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.