public class BinaryNuSvmClassification extends LibNuSvmSolver implements ClassificationLearningAlgorithm, KernelMethod
It is a Java porting of the library LIBSVM v3.17, written in C++.
Further details can be found in:
[CC Chang & CJ Lin, 2011] Chih-Chung Chang and Chih-Jen Lin. LIBSVM: A library for support vector machines. ACM Transactions on Intelligent Systems and Technology, 2:27:1-27:27, 2011.
and
http://www.csie.ntu.edu.tw/~cjlin/libsvm/
LibSvmSolver.Pairactive_set, active_size, alpha, alpha_status, cn, cp, doShrinking, eps, examples, G, G_bar, kernel, l, logIteration, p, QD, shrinkingIteration, TAU, unshrink, y| Constructor and Description |
|---|
BinaryNuSvmClassification() |
BinaryNuSvmClassification(Kernel kernel,
Label label,
float nu) |
| Modifier and Type | Method and Description |
|---|---|
BinaryNuSvmClassification |
duplicate()
Creates a new instance of the LearningAlgorithm initialized with the same parameters
of the learningAlgorithm to be duplicated.
|
float |
getNu() |
BinaryKernelMachineClassifier |
getPredictionFunction()
Returns the classifier learned during the training process
|
void |
learn(Dataset trainingSet)
It starts the training process exploiting the provided
dataset |
void |
reset()
Resets all the learning process, returning to the default state.
|
void |
setKernel(Kernel kernel)
Sets the kernel this
|
void |
setNu(float nu) |
void |
setPredictionFunction(PredictionFunction predictionFunction)
Sets the predictionFunction learned during the training process.
|
be_shrunk, calculate_r, calculate_rho, do_shrinking, select_working_setget_QD, get_Qij, getCn, getCp, getEps, getKernel, getLabel, getLabels, info, is_free, is_lower_bound, is_upper_bound, kernel, reconstruct_gradient, setC, setCn, setCp, setEps, setLabel, setLabels, solve, swap_index, swap, swap, swap, swapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLabels, setLabelsgetKernelpublic BinaryNuSvmClassification duplicate()
LearningAlgorithmduplicate in interface LearningAlgorithmpublic float getNu()
public BinaryKernelMachineClassifier getPredictionFunction()
ClassificationLearningAlgorithmgetPredictionFunction in interface ClassificationLearningAlgorithmgetPredictionFunction in interface LearningAlgorithmpublic void learn(Dataset trainingSet)
LearningAlgorithmdatasetlearn in interface LearningAlgorithmtrainingSet - the training datapublic void reset()
LearningAlgorithmreset in interface LearningAlgorithmpublic void setNu(float nu)
nu - The \(\nu\) parameterpublic void setKernel(Kernel kernel)
KernelMethodsetKernel in interface KernelMethodkernel - the kernel to setpublic void setPredictionFunction(PredictionFunction predictionFunction)
LearningAlgorithmsetPredictionFunction in interface LearningAlgorithmCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.