fr.lip6.classifier
Interface Classifier<T>

Type Parameters:
T -
All Known Implementing Classes:
DoublePegasosSVM, EnhancedSMOSVM, ParzenClassifier, PegasosSVM, SimpleMKL, SMOSVM

public interface Classifier<T>

Classifier interface that provides training and evaluation methods.

Author:
dpicard

Method Summary
 void train(java.util.ArrayList<TrainingSample<T>> l)
          Replace the current training and train the classifier
 void train(TrainingSample<T> t)
          Add a single example to the current training set and train the classifier
 double valueOf(T e)
          Computes the category of the provided example
 

Method Detail

train

void train(TrainingSample<T> t)
Add a single example to the current training set and train the classifier

Parameters:
t - the training sample

train

void train(java.util.ArrayList<TrainingSample<T>> l)
Replace the current training and train the classifier

Parameters:
l - list of training samples

valueOf

double valueOf(T e)
Computes the category of the provided example

Parameters:
e - example
Returns:
>0. if e belongs to the category, <0. if not.