public class MulticlassSDCA<T> extends java.lang.Object implements MulticlassClassifier<T>
Constructor and Description |
---|
MulticlassSDCA(Kernel<T> k) |
Modifier and Type | Method and Description |
---|---|
Classifier<T> |
copy()
Creates and returns a copy of this object.
|
double[][] |
getAlphas() |
double |
getC() |
double |
getConfidence(T t)
Tells the confidence associated with the predicted class
|
java.util.Map<java.lang.Integer,java.lang.Double> |
getConfidences(T t)
Tells the confidences for all classes
|
double |
getE() |
Kernel<T> |
getKernel() |
void |
setC(double c) |
void |
setE(double e) |
void |
setKernel(Kernel<T> kernel) |
void |
train(java.util.List<TrainingSample<T>> l)
Replace the current training list 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
|
public void train(TrainingSample<T> t)
Classifier
train
in interface Classifier<T>
t
- the training samplepublic void train(java.util.List<TrainingSample<T>> l)
Classifier
train
in interface Classifier<T>
l
- list of training samplespublic double valueOf(T e)
Classifier
valueOf
in interface Classifier<T>
e
- examplepublic Classifier<T> copy() throws java.lang.CloneNotSupportedException
Classifier
copy
in interface Classifier<T>
java.lang.CloneNotSupportedException
Object.clone()
public double getConfidence(T t)
MulticlassClassifier
getConfidence
in interface MulticlassClassifier<T>
t
- the sample to evaluatepublic java.util.Map<java.lang.Integer,java.lang.Double> getConfidences(T t)
MulticlassClassifier
getConfidences
in interface MulticlassClassifier<T>
t
- the sample to evaluatepublic double getC()
public void setC(double c)
public double getE()
public void setE(double e)
public double[][] getAlphas()