public class OneClassSvmClassification extends BinaryCSvmClassification
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.Pair
classifier
active_set, active_size, alpha, alpha_status, cn, cp, doShrinking, eps, examples, G, G_bar, kernel, l, label, logIteration, p, QD, shrinkingIteration, TAU, unshrink, y
Constructor and Description |
---|
OneClassSvmClassification() |
OneClassSvmClassification(Kernel kernel,
Label label,
float nu) |
Modifier and Type | Method and Description |
---|---|
OneClassSvmClassification |
duplicate()
Creates a new instance of the LearningAlgorithm initialized with the same parameters
of the learningAlgorithm to be duplicated.
|
float |
getNu() |
void |
learn(Dataset trainingSet)
It starts the training process exploiting the provided
dataset |
void |
setNu(float nu) |
getPredictionFunction, isFairness, reset, setFairness, setKernel, setPredictionFunction
be_shrunk, calculate_rho, do_shrinking, getCSvmAlpha, select_working_set
get_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, swap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabels, setLabels
getKernel
public OneClassSvmClassification duplicate()
LearningAlgorithm
duplicate
in interface LearningAlgorithm
duplicate
in class BinaryCSvmClassification
public float getNu()
public void learn(Dataset trainingSet)
LearningAlgorithm
dataset
learn
in interface LearningAlgorithm
learn
in class BinaryCSvmClassification
trainingSet
- the training datapublic void setNu(float nu)
nu
- the \(\nu\) parameterCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.