C# Класс numl.Math.Functions.Regularization.L2Regularizer

Standard regularization
Наследование: IRegularizer
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Regularize() публичный Метод

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
Результат numl.Math.LinearAlgebra.Vector

Regularize() публичный Метод

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
Результат double