Enum rusty_machine::learning::toolkit::regularization::Regularization [] [src]

pub enum Regularization<T: Float> {
    L1(T),
    L2(T),
    ElasticNet(T, T),
    None,
}

Model Regularization

Variants

L1 Regularization

L2 Regularization

Elastic Net Regularization (L1 and L2)

No Regularization

Methods

impl<T: Float + FromPrimitive> Regularization<T>
[src]

Compute the regularization addition to the cost.

Compute the regularization addition to the gradient.

Trait Implementations

impl<T: Debug + Float> Debug for Regularization<T>
[src]

Formats the value using the given formatter.

impl<T: Clone + Float> Clone for Regularization<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy + Float> Copy for Regularization<T>
[src]