public class BinaryCSvmClassification extends LibCSvmSolver implements ClassificationLearningAlgorithm, KernelMethod
It is a Java porting of the library LIBSVM, 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| Modifier and Type | Field and Description | 
|---|---|
| protected BinaryKernelMachineClassifier | classifierThe classifier to be returned | 
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 | 
|---|
| BinaryCSvmClassification() | 
| BinaryCSvmClassification(Kernel kernel,
                        Label label,
                        float cp,
                        float cn) | 
| BinaryCSvmClassification(Kernel kernel,
                        Label label,
                        float cp,
                        float cn,
                        boolean useFairness) | 
| Modifier and Type | Method and Description | 
|---|---|
| LearningAlgorithm | duplicate()Creates a new instance of the LearningAlgorithm initialized with the same parameters
 of the learningAlgorithm to be duplicated. | 
| BinaryClassifier | getPredictionFunction()Returns the classifier learned during the training process | 
| boolean | isFairness() | 
| 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 | setFairness(boolean fairness) | 
| void | setKernel(Kernel kernel)Sets the kernel this | 
be_shrunk, calculate_rho, do_shrinking, getCSvmAlpha, select_working_setget_QD, get_Qij, getCn, getCp, getKernel, getLabel, getLabels, info, is_free, is_lower_bound, is_upper_bound, kernel, reconstruct_gradient, setCn, setCp, setLabel, setLabels, solve, swap_index, swap, swap, swap, swapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLabels, setLabelsgetKernelprotected BinaryKernelMachineClassifier classifier
public BinaryCSvmClassification()
public BinaryCSvmClassification(Kernel kernel, Label label, float cp, float cn)
kernel - The kernel functionlabel - The label to be learnedcp - The regularization parameter for positive examplescn - The regularization parameter for negative examplespublic BinaryCSvmClassification(Kernel kernel, Label label, float cp, float cn, boolean useFairness)
kernel - The kernel functionlabel - The label to be learnedcp - The regularization parameter for positive examplescn - The regularization parameter for negative examplesuseFairness - A boolean parameter to force the fairness policypublic LearningAlgorithm duplicate()
LearningAlgorithmduplicate in interface LearningAlgorithmpublic BinaryClassifier getPredictionFunction()
ClassificationLearningAlgorithmgetPredictionFunction in interface ClassificationLearningAlgorithmgetPredictionFunction in interface LearningAlgorithmpublic boolean isFairness()
public void learn(Dataset trainingSet)
LearningAlgorithmdatasetlearn in interface LearningAlgorithmtrainingSet - the training datapublic void reset()
LearningAlgorithmreset in interface LearningAlgorithmpublic void setFairness(boolean fairness)
fairness - A boolean parameter to force the fairness policypublic void setKernel(Kernel kernel)
KernelMethodsetKernel in interface KernelMethodkernel - the kernel to setCopyright © 2014 Semantic Analytics Group @ Uniroma2. All rights reserved.