C# Класс MCAEmotiv.Classification.AbstractBinaryClassifier

Наследование: AbstractClassifier, IBinaryClassifier
Показать файл Открыть проект

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

Метод Описание
GetBinaryClass ( int cls ) : bool?

Returns true if cls maps to a positive example, false if cls maps to a negative example, and null if there is no mapping for cls.

Защищенные методы

Метод Описание
ConvertToBinaryExample ( Example nonBinaryExample ) : Example

Returns an example whose class is the binary equivalent of the given example's class and whose features are the same as the given example's features

PredictBinary ( Example binaryExample, double &confidence ) : int

Classify as NegativeExampleValue or PositiveExampleValue

PredictHelper ( Example example, double &confidence ) : int

Calls PredictBinary, and then converts the prediction back to a regular class value.

TrainBinary ( IArrayView binaryExamples ) : void

The values of the pairs are the labels mapped to either NegativeExampleValue or PositiveExampleValue.

TrainHelper ( IArrayView examples ) : void

Converts the examples to have binary class values, then calls TrainBinary. The mappings from regular classes to binary classes are stored until future calls to TrainHelper.

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

ConvertToBinaryExample() защищенный Метод

Returns an example whose class is the binary equivalent of the given example's class and whose features are the same as the given example's features
protected ConvertToBinaryExample ( Example nonBinaryExample ) : Example
nonBinaryExample Example
Результат Example

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

Returns true if cls maps to a positive example, false if cls maps to a negative example, and null if there is no mapping for cls.
public GetBinaryClass ( int cls ) : bool?
cls int
Результат bool?

PredictBinary() защищенный абстрактный Метод

Classify as NegativeExampleValue or PositiveExampleValue
protected abstract PredictBinary ( Example binaryExample, double &confidence ) : int
binaryExample Example
confidence double
Результат int

PredictHelper() защищенный Метод

Calls PredictBinary, and then converts the prediction back to a regular class value.
protected PredictHelper ( Example example, double &confidence ) : int
example Example
confidence double
Результат int

TrainBinary() защищенный абстрактный Метод

The values of the pairs are the labels mapped to either NegativeExampleValue or PositiveExampleValue.
protected abstract TrainBinary ( IArrayView binaryExamples ) : void
binaryExamples IArrayView
Результат void

TrainHelper() защищенный Метод

Converts the examples to have binary class values, then calls TrainBinary. The mappings from regular classes to binary classes are stored until future calls to TrainHelper.
protected TrainHelper ( IArrayView examples ) : void
examples IArrayView
Результат void