package JKernelMachines; import java.util.List; import JKernelMachines.TrainingSample; /** * Classifier interface that provides training and evaluation methods. * @author dpicard * * @param */ public interface Classifier { /** * Add a single example to the current training set and train the classifier * @param t the training sample */ public void train(TrainingSample t); /** * Replace the current training and train the classifier * @param l list of training samples */ public void train(List> l); /** * Computes the category of the provided example * @param e example * @return >0. if e belongs to the category, <0. if not. */ public double valueOf(T e); }