public class KernelizedPassiveAggressiveClassification extends PassiveAggressiveClassification implements KernelMethod
[CrammerJLMR2006] Koby Crammer, Ofer Dekel, Joseph Keshet, Shai Shalev-Shwartz and Yoram Singer Online Passive-Aggressive Algorithms. Journal of Machine Learning Research (2006)
The standard algorithm is modified, including the fairness extention from
[FiliceECIR2014] S. Filice, G. Castellucci, D. Croce, and R. Basili. Effective Kernelized Online Learning in Language Processing Tasks. In collection of Advances in Information Retrieval, pp. 347–358, Springer International Publishing, 2014.
PassiveAggressiveClassification.Loss
PassiveAggressive.Policy
classifier, cp, fairness, loss
c, label, policy
Constructor and Description |
---|
KernelizedPassiveAggressiveClassification() |
KernelizedPassiveAggressiveClassification(float cp,
float cn,
PassiveAggressiveClassification.Loss loss,
Kernel kernel,
Label label) |
Modifier and Type | Method and Description |
---|---|
KernelizedPassiveAggressiveClassification |
duplicate()
Creates a new instance of the LearningAlgorithm initialized with the same parameters
of the learningAlgorithm to be duplicated.
|
Kernel |
getKernel()
Returns the kernel exploited by this learner
|
BinaryKernelMachineClassifier |
getPredictionFunction()
Returns the classifier learned during the training process
|
void |
setKernel(Kernel kernel)
Sets the kernel this
|
getC, getCn, getCp, getLoss, isFairness, learn, learn, setC, setCn, setCp, setFairness, setLoss
computeWeight, getLabel, getLabels, getPolicy, reset, setLabel, setLabels, setPolicy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabels, reset, setLabels
public KernelizedPassiveAggressiveClassification()
public KernelizedPassiveAggressiveClassification(float cp, float cn, PassiveAggressiveClassification.Loss loss, Kernel kernel, Label label)
public Kernel getKernel()
KernelMethod
getKernel
in interface KernelMethod
public void setKernel(Kernel kernel)
KernelMethod
setKernel
in interface KernelMethod
kernel
- the kernel to setpublic KernelizedPassiveAggressiveClassification duplicate()
LearningAlgorithm
duplicate
in interface LearningAlgorithm
public BinaryKernelMachineClassifier getPredictionFunction()
ClassificationLearningAlgorithm
getPredictionFunction
in interface ClassificationLearningAlgorithm
getPredictionFunction
in interface LearningAlgorithm
getPredictionFunction
in class PassiveAggressiveClassification
Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.