Skip to main content

l2_regularisation_grad

Function l2_regularisation_grad 

Source
pub fn l2_regularisation_grad(weights: &[f64], lambda: f64) -> Vec<f64>
Expand description

Compute L2 regularisation gradient contribution (adds lambda * w to each element).