pub struct RegularizationFactory;Expand description
Factory for creating common regularization schemes
Implementations§
Source§impl RegularizationFactory
impl RegularizationFactory
Sourcepub fn elastic_net(
alpha: Float,
l1_ratio: Float,
) -> Result<Box<dyn Regularization>>
pub fn elastic_net( alpha: Float, l1_ratio: Float, ) -> Result<Box<dyn Regularization>>
Create Elastic Net regularization
Sourcepub fn group_lasso(
alpha: Float,
groups: Vec<usize>,
) -> Result<Box<dyn Regularization>>
pub fn group_lasso( alpha: Float, groups: Vec<usize>, ) -> Result<Box<dyn Regularization>>
Create Group Lasso regularization
Sourcepub fn composite() -> CompositeRegularization
pub fn composite() -> CompositeRegularization
Create a composite regularization builder
Auto Trait Implementations§
impl Freeze for RegularizationFactory
impl RefUnwindSafe for RegularizationFactory
impl Send for RegularizationFactory
impl Sync for RegularizationFactory
impl Unpin for RegularizationFactory
impl UnwindSafe for RegularizationFactory
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