C# Class MCAEmotiv.Classification.AbstractClassifier

Inheritance: IClassifier
Show file Open project: madelson/Emotiv-Experimenter

Public Methods

Method Description
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.

Protected Methods

Method Description
AbstractClassifier ( ) : System

Construct an abstract classifier

PredictHelper ( Example example, double &confidence ) : int

Called by Predict

TrainHelper ( IArrayView labeledExamples ) : void

Called by Train

Method Details

AbstractClassifier() protected method

Construct an abstract classifier
protected AbstractClassifier ( ) : System
return System

Equals() public method

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

GetHashCode() public method

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

Predict() public method

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

PredictHelper() protected abstract method

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

Train() public method

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

TrainHelper() protected abstract method

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