pub struct ElasticNetValidParams<F> { /* private fields */ }Expand description
Configure an ElasticNet model.
Implementations§
Source§impl<F: Float> ElasticNetValidParams<F>
impl<F: Float> ElasticNetValidParams<F>
pub fn alpha(&self) -> F
pub fn l1_ratio(&self) -> F
pub fn max_iterations(&self) -> usize
pub fn max_epochs(&self) -> usize
pub fn ws_start_size(&self) -> usize
pub fn tolerance(&self) -> F
pub fn K(&self) -> usize
pub fn use_acceleration(&self) -> bool
pub fn verbose(&self) -> bool
Trait Implementations§
Source§impl<F: Clone> Clone for ElasticNetValidParams<F>
impl<F: Clone> Clone for ElasticNetValidParams<F>
Source§fn clone(&self) -> ElasticNetValidParams<F>
fn clone(&self) -> ElasticNetValidParams<F>
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 moreSource§impl<F: Debug> Debug for ElasticNetValidParams<F>
impl<F: Debug> Debug for ElasticNetValidParams<F>
Source§impl<F: Float, S: Data<Elem = F>, T: AsSingleTargets<Elem = F>> Fit<ArrayBase<S, Dim<[usize; 2]>>, T, EstimatorError> for ElasticNetValidParams<F>
This implements the coordinate descent optimization procedure for
single-task problems and dense design matrices.
impl<F: Float, S: Data<Elem = F>, T: AsSingleTargets<Elem = F>> Fit<ArrayBase<S, Dim<[usize; 2]>>, T, EstimatorError> for ElasticNetValidParams<F>
This implements the coordinate descent optimization procedure for single-task problems and dense design matrices.
Source§type Object = ElasticNet<F>
type Object = ElasticNet<F>
If successful, the output of the coordinate descent solver is an instance
of ElasticNet containing the fitted coefficients.
Source§fn fit(
&self,
dataset: &DatasetBase<ArrayBase<S, Ix2>, T>,
) -> Result<Self::Object>
fn fit( &self, dataset: &DatasetBase<ArrayBase<S, Ix2>, T>, ) -> Result<Self::Object>
This method fits a ElasticNet instance to a dataset with a
dense design matrix.
Source§impl<F: Float, T: AsSingleTargets<Elem = F>> Fit<CSCArray<'_, F>, T, EstimatorError> for ElasticNetValidParams<F>
This implements the coordinate descent optimization procedure for
single-task problems and sparse design matrices.
impl<F: Float, T: AsSingleTargets<Elem = F>> Fit<CSCArray<'_, F>, T, EstimatorError> for ElasticNetValidParams<F>
This implements the coordinate descent optimization procedure for single-task problems and sparse design matrices.
Source§type Object = ElasticNet<F>
type Object = ElasticNet<F>
If successful, the output of the coordinate descent solver is an instance
of ElasticNet containing the fitted coefficients.
Source§fn fit(&self, dataset: &DatasetBase<CSCArray<'_, F>, T>) -> Result<Self::Object>
fn fit(&self, dataset: &DatasetBase<CSCArray<'_, F>, T>) -> Result<Self::Object>
This method fits a ElasticNet instance to a dataset with a
dense design matrix.
Source§impl<F: PartialEq> PartialEq for ElasticNetValidParams<F>
impl<F: PartialEq> PartialEq for ElasticNetValidParams<F>
impl<F> StructuralPartialEq for ElasticNetValidParams<F>
Auto Trait Implementations§
impl<F> Freeze for ElasticNetValidParams<F>where
F: Freeze,
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§
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