C# 클래스 MCAEmotiv.Classification.AbstractBinaryClassifier

상속: AbstractClassifier, IBinaryClassifier
파일 보기 프로젝트 열기: madelson/Emotiv-Experimenter

공개 메소드들

메소드 설명
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