C# 클래스 numl.Math.Functions.Regularization.L2Regularizer

Standard regularization
상속: IRegularizer
파일 보기 프로젝트 열기: sethjuarez/numl

공개 메소드들

메소드 설명
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