C# 클래스 MCAEmotiv.Classification.AbstractClassifier

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

공개 메소드들

메소드 설명
Equals ( object obj ) : bool

Checks for identity equality or type and parameter equality.

GetHashCode ( ) : int

Returns the hash code of this classifier's type.

Predict ( Example example, double &confidence ) : int

Throws an execption is the classifier has not been trained, then calls PredictHelper.

Train ( IArrayView labeledExamples ) : void

Checks that the classifiers parameters are valid and calls TrainHelper. Sets IsTrained to true.

보호된 메소드들

메소드 설명
AbstractClassifier ( ) : System

Construct an abstract classifier

PredictHelper ( Example example, double &confidence ) : int

Called by Predict

TrainHelper ( IArrayView labeledExamples ) : void

Called by Train

메소드 상세

AbstractClassifier() 보호된 메소드

Construct an abstract classifier
protected AbstractClassifier ( ) : System
리턴 System

Equals() 공개 메소드

Checks for identity equality or type and parameter equality.
public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

Returns the hash code of this classifier's type.
public GetHashCode ( ) : int
리턴 int

Predict() 공개 메소드

Throws an execption is the classifier has not been trained, then calls PredictHelper.
public Predict ( Example example, double &confidence ) : int
example Example
confidence double
리턴 int

PredictHelper() 보호된 추상적인 메소드

Called by Predict
protected abstract PredictHelper ( Example example, double &confidence ) : int
example Example
confidence double
리턴 int

Train() 공개 메소드

Checks that the classifiers parameters are valid and calls TrainHelper. Sets IsTrained to true.
public Train ( IArrayView labeledExamples ) : void
labeledExamples IArrayView
리턴 void

TrainHelper() 보호된 추상적인 메소드

Called by Train
protected abstract TrainHelper ( IArrayView labeledExamples ) : void
labeledExamples IArrayView
리턴 void