|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lip6.classifier.PegasosSVM<T>
public class PegasosSVM<T>
| Constructor Summary | |
|---|---|
PegasosSVM(Kernel<T> k)
|
|
| Method Summary | |
|---|---|
java.util.ArrayList<java.lang.Double> |
getAlphas()
returns the list of weights associated with the support vectors |
int |
getK()
|
double |
getLambda()
|
int |
getT()
|
void |
setK(int k)
|
void |
setLambda(double lambda)
|
void |
setT(int t)
|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PegasosSVM(Kernel<T> k)
| Method Detail |
|---|
public void train(java.util.ArrayList<TrainingSample<T>> l)
Classifier
train in interface Classifier<T>l - list of training samplespublic void train(TrainingSample<T> t)
Classifier
train in interface Classifier<T>t - the training samplepublic double valueOf(T e)
Classifier
valueOf in interface Classifier<T>e - example
public java.util.ArrayList<java.lang.Double> getAlphas()
public int getT()
public void setT(int t)
t - the t to setpublic int getK()
public void setK(int k)
k - the k to setpublic double getLambda()
public void setLambda(double lambda)
lambda - the lambda to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||