C# Class Encog.ML.SVM.SupportVectorMachine

Inheritance: Encog.ML.BasicML, IMLMethod, IMLRegression, IMLInputOutput, IMLInput, IMLOutput, IMLClassification, IMLError
Show file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
CalculateError ( IMLDataSet data ) : double

Calculate the error for this SVM.

Classify ( IMLData input ) : int
Compute ( IMLData input ) : IMLData

Compute the output for the given input.

MakeSparse ( IMLData data ) : Encog.MathUtil.LIBSVM.svm_node[]

Convert regular Encog MLData into the "sparse" data needed by an SVM.

SupportVectorMachine ( ) : System

Construct the SVM.

SupportVectorMachine ( int theInputCount, SVMType svmType, KernelType kernelType ) : System

Construct a SVM network.

SupportVectorMachine ( int theInputCount, bool regression ) : System

Construct an SVM network. For regression it will use an epsilon support vector. Both types will use an RBF kernel.

SupportVectorMachine ( svm_model theModel ) : System

Construct a SVM from a model.

UpdateProperties ( ) : void

Not needed, no properties to update.

Method Details

CalculateError() public method

Calculate the error for this SVM.
public CalculateError ( IMLDataSet data ) : double
data IMLDataSet The training set.
return double

Classify() public method

public Classify ( IMLData input ) : int
input IMLData
return int

Compute() public method

Compute the output for the given input.
public Compute ( IMLData input ) : IMLData
input IMLData The input to the SVM.
return IMLData

MakeSparse() public method

Convert regular Encog MLData into the "sparse" data needed by an SVM.
public MakeSparse ( IMLData data ) : Encog.MathUtil.LIBSVM.svm_node[]
data IMLData The data to convert.
return Encog.MathUtil.LIBSVM.svm_node[]

SupportVectorMachine() public method

Construct the SVM.
public SupportVectorMachine ( ) : System
return System

SupportVectorMachine() public method

Construct a SVM network.
public SupportVectorMachine ( int theInputCount, SVMType svmType, KernelType kernelType ) : System
theInputCount int The input count.
svmType SVMType The type of SVM.
kernelType KernelType The SVM kernal type.
return System

SupportVectorMachine() public method

Construct an SVM network. For regression it will use an epsilon support vector. Both types will use an RBF kernel.
public SupportVectorMachine ( int theInputCount, bool regression ) : System
theInputCount int The input count.
regression bool True if this network is used for regression.
return System

SupportVectorMachine() public method

Construct a SVM from a model.
public SupportVectorMachine ( svm_model theModel ) : System
theModel Encog.MathUtil.LIBSVM.svm_model The model.
return System

UpdateProperties() public method

Not needed, no properties to update.
public UpdateProperties ( ) : void
return void