C# Class numl.Math.Functions.Cost.CostFunction

Implements a CostFunction when overridden in a derived class.
Inheritance: ICostFunction
ファイルを表示 Open project: sethjuarez/numl

Public Methods

Method Description
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.

Method Details

ComputeCost() public abstract method

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

ComputeGradient() public abstract method

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

Initialize() public method

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