C# Class numl.Math.Functions.Regularization.L2Regularizer

Standard regularization
Inheritance: IRegularizer
Datei anzeigen Open project: sethjuarez/numl

Public Methods

Method Description
Regularize ( Vector gradient, Vector theta, int m, double lambda ) : Vector

Applies regularization to the current gradient

Regularize ( double j, Vector theta, int m, double lambda ) : double

Applies regularization to the current cost

Method Details

Regularize() public method

Applies regularization to the current gradient
public Regularize ( Vector gradient, Vector theta, int m, double lambda ) : Vector
gradient numl.Math.LinearAlgebra.Vector Current gradient
theta numl.Math.LinearAlgebra.Vector Current theta
m int Training records
lambda double Regularization constant
return numl.Math.LinearAlgebra.Vector

Regularize() public method

Applies regularization to the current cost
public Regularize ( double j, Vector theta, int m, double lambda ) : double
j double Current cost
theta numl.Math.LinearAlgebra.Vector Current theta
m int Training records
lambda double Regularization constant
return double