C# Класс Encog.ML.SVM.SupportVectorMachine

Наследование: Encog.ML.BasicML, IMLMethod, IMLRegression, IMLInputOutput, IMLInput, IMLOutput, IMLClassification, IMLError
Показать файл Открыть проект Примеры использования класса

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

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

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

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

Calculate the error for this SVM.
public CalculateError ( IMLDataSet data ) : double
data IMLDataSet The training set.
Результат double

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

public Classify ( IMLData input ) : int
input IMLData
Результат int

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

Compute the output for the given input.
public Compute ( IMLData input ) : IMLData
input IMLData The input to the SVM.
Результат IMLData

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

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.
Результат Encog.MathUtil.LIBSVM.svm_node[]

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

Construct the SVM.
public SupportVectorMachine ( ) : System
Результат System

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

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

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

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

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

Construct a SVM from a model.
public SupportVectorMachine ( svm_model theModel ) : System
theModel Encog.MathUtil.LIBSVM.svm_model The model.
Результат System

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

Not needed, no properties to update.
public UpdateProperties ( ) : void
Результат void