public class NystromLSSVM<T> extends java.lang.Object implements Classifier<T>
Constructor and Description |
---|
NystromLSSVM(Kernel<T> k) |
Modifier and Type | Method and Description |
---|---|
Classifier<T> |
copy()
Creates and returns a copy of this object.
|
double |
getC()
Get the C svm hyperparameter
|
int |
getIteration()
Get the number of iterations used by the active learning strategy of the
Nystrom kernel
|
double |
getPercent()
Get the percentage of training set that is used to train the Nystrom
approximation kernel
|
void |
setC(double c)
Set the C svm hyperparameter
|
void |
setIteration(int iteration)
Set the number of iteration to use in the Nystrom approximation
|
void |
setPercent(double percent)
Set the percentage of training set to be used for training the Nystrom
approximation 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 getPercent()
public void setPercent(double percent)
percent
- the percetage to usepublic int getIteration()
public void setIteration(int iteration)
iteration
- the number of iterationpublic double getC()
public void setC(double c)
c
- Chyperparameter