C# 클래스 numl.Math.Functions.Cost.CostFunction

Implements a CostFunction when overridden in a derived class.
상속: ICostFunction
파일 보기 프로젝트 열기: sethjuarez/numl

공개 메소드들

메소드 설명
ComputeCost ( Vector theta ) : double

Computes the cost of the current theta parameters against the known Y labels.

ComputeGradient ( Vector theta ) : Vector

Computes the current gradient step direction towards the minima.

Initialize ( ) : void

Initialization method for performing custom actions prior to being optimized.

메소드 상세

ComputeCost() 공개 추상적인 메소드

Computes the cost of the current theta parameters against the known Y labels.
public abstract ComputeCost ( Vector theta ) : double
theta numl.Math.LinearAlgebra.Vector
리턴 double

ComputeGradient() 공개 추상적인 메소드

Computes the current gradient step direction towards the minima.
public abstract ComputeGradient ( Vector theta ) : Vector
theta numl.Math.LinearAlgebra.Vector
리턴 numl.Math.LinearAlgebra.Vector

Initialize() 공개 메소드

Initialization method for performing custom actions prior to being optimized.
public Initialize ( ) : void
리턴 void