C# Class MCAEmotiv.Classification.AbstractClassifier

Inheritance: IClassifier
Afficher le fichier Open project: madelson/Emotiv-Experimenter

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

Construct an abstract classifier
protected AbstractClassifier ( ) : System
Résultat System

Equals() public méthode

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

GetHashCode() public méthode

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

Predict() public méthode

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

PredictHelper() protected abstract méthode

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

Train() public méthode

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

TrainHelper() protected abstract méthode

Called by Train
protected abstract TrainHelper ( IArrayView labeledExamples ) : void
labeledExamples IArrayView
Résultat void