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

Standard regularization
Inheritance: IRegularizer
Afficher le fichier Open project: sethjuarez/numl

Méthodes publiques

Méthode 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 méthode

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
Résultat numl.Math.LinearAlgebra.Vector

Regularize() public méthode

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
Résultat double