|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lip6.classifier.DoublePegasosSVM
public class DoublePegasosSVM
| Constructor Summary | |
|---|---|
DoublePegasosSVM()
|
|
| Method Summary | |
|---|---|
double |
getB()
|
int |
getK()
|
double |
getLambda()
|
int |
getT()
|
double[] |
getW()
|
void |
setB(double b)
Setting the bias term |
void |
setK(int k)
|
void |
setLambda(double lambda)
|
void |
setT(int t)
|
void |
setW(double[] w)
Setting the hyperplane coordinates |
void |
train(java.util.ArrayList<TrainingSample<double[]>> l)
Replace the current training and train the classifier |
void |
train(TrainingSample<double[]> t)
Add a single example to the current training set and train the classifier |
double |
valueOf(double[] 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 DoublePegasosSVM()
| Method Detail |
|---|
public void train(java.util.ArrayList<TrainingSample<double[]>> l)
Classifier
train in interface Classifier<double[]>l - list of training samplespublic void train(TrainingSample<double[]> t)
Classifier
train in interface Classifier<double[]>t - the training samplepublic double valueOf(double[] e)
Classifier
valueOf in interface Classifier<double[]>e - example
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 setpublic double[] getW()
public void setW(double[] w)
w - the w to setpublic double getB()
public void setB(double b)
b - the b to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||