Soit fournit.
- Author:
- dpicard
- See Also:
- Serialized Form
|
Constructor Summary |
SMOSVM(Kernel<T> k)
Constructeur passant le noyau servant à calculer la similarité entre les éléments
de l'espace d'entrée. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SMOSVM
public SMOSVM(Kernel<T> k)
- Constructeur passant le noyau servant à calculer la similarité entre les éléments
de l'espace d'entrée.
- Parameters:
k - le noyau templatisé en
train
public void train(TrainingSample<T> t)
- Description copied from interface:
Classifier
- Add a single example to the current training set and train the classifier
- Specified by:
train in interface Classifier<T>
- Parameters:
t - the training sample
train
public void train(java.util.ArrayList<TrainingSample<T>> t)
- Description copied from interface:
Classifier
- Replace the current training and train the classifier
- Specified by:
train in interface Classifier<T>
- Parameters:
t - list of training samples
retrain
public void retrain()
- réentraînement sur la base des alphas précédents.
valueOf
public double valueOf(T e)
- Description copied from interface:
Classifier
- Computes the category of the provided example
- Specified by:
valueOf in interface Classifier<T>
- Parameters:
e - example
- Returns:
- >0. if e belongs to the category, <0. if not.
getAlphas
public double[] getAlphas()
- returns support vectors weights
getB
public double getB()
- returns bias
- Returns:
- the bias of the trained svm
getTrainingSet
public java.util.ArrayList<TrainingSample<T>> getTrainingSet()
- the ArrayList of TrainingSample used for training
- Returns:
- the ArrayList of trainign samples
setKernel
public void setKernel(Kernel<T> k)
setAlphas
public void setAlphas(double[] a)
setTrain
public void setTrain(java.util.ArrayList<TrainingSample<T>> t)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException