C# Class MCAEmotiv.GUI.Animation.ClassifierManager

Mostrar archivo Open project: madelson/Emotiv-Experimenter

Public Methods

Method Description
AddTrial ( IArrayView trial ) : void

Enqueues a trial

ClassifierManager ( ClassificationScheme classificationScheme ) : System

Constructs a manager for the given scheme

Predict ( IArrayView trial, double &confidence ) : int

Uses the classifier to predict the class of the trial

RecordResult ( int actual, int predicted, double confidence ) : void

Registers a prediction result to keep track of running accuracy

RemoveTrial ( IArrayView trial ) : void

Removes the trial if it was enqueued but not yet processed

Train ( ) : void

Trains the classifier on all enqueued examples

Private Methods

Method Description
GetExample ( IArrayView trial ) : Example

Method Details

AddTrial() public method

Enqueues a trial
public AddTrial ( IArrayView trial ) : void
trial IArrayView
return void

ClassifierManager() public method

Constructs a manager for the given scheme
public ClassifierManager ( ClassificationScheme classificationScheme ) : System
classificationScheme MCAEmotiv.GUI.Configurations.ClassificationScheme
return System

Predict() public method

Uses the classifier to predict the class of the trial
public Predict ( IArrayView trial, double &confidence ) : int
trial IArrayView
confidence double
return int

RecordResult() public method

Registers a prediction result to keep track of running accuracy
public RecordResult ( int actual, int predicted, double confidence ) : void
actual int
predicted int
confidence double
return void

RemoveTrial() public method

Removes the trial if it was enqueued but not yet processed
public RemoveTrial ( IArrayView trial ) : void
trial IArrayView
return void

Train() public method

Trains the classifier on all enqueued examples
public Train ( ) : void
return void