public class LinearPassiveAggressiveClassification extends PassiveAggressiveClassification implements LinearMethod
[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.LossPassiveAggressive.Policyclassifier, cp, fairness, lossc, label, policy| Constructor and Description | 
|---|
LinearPassiveAggressiveClassification()  | 
LinearPassiveAggressiveClassification(float cp,
                                     float cn,
                                     PassiveAggressiveClassification.Loss loss,
                                     PassiveAggressive.Policy policy,
                                     String representation,
                                     Label label)  | 
| Modifier and Type | Method and Description | 
|---|---|
LinearPassiveAggressiveClassification | 
duplicate()
Creates a new instance of the LearningAlgorithm initialized with the same parameters
 of the learningAlgorithm to be duplicated. 
 | 
BinaryLinearClassifier | 
getPredictionFunction()
Returns the classifier learned during the training process 
 | 
String | 
getRepresentation()
Returns the representation this learning algorithm exploits 
 | 
void | 
setPredictionFunction(PredictionFunction predictionFunction)
Sets the predictionFunction learned during the training process. 
 | 
void | 
setRepresentation(String representation)
Sets the representation this learning algorithm will exploit 
 | 
getC, getCn, getCp, getLoss, isFairness, learn, learn, setC, setCn, setCp, setFairness, setLosscomputeWeight, getLabel, getLabels, getPolicy, reset, setLabel, setLabels, setPolicyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLabels, reset, setLabelspublic LinearPassiveAggressiveClassification()
public LinearPassiveAggressiveClassification(float cp,
                                     float cn,
                                     PassiveAggressiveClassification.Loss loss,
                                     PassiveAggressive.Policy policy,
                                     String representation,
                                     Label label)
public String getRepresentation()
LinearMethodgetRepresentation in interface LinearMethodpublic void setRepresentation(String representation)
LinearMethodsetRepresentation in interface LinearMethodrepresentation - the representation to setpublic LinearPassiveAggressiveClassification duplicate()
LearningAlgorithmduplicate in interface LearningAlgorithmpublic BinaryLinearClassifier getPredictionFunction()
ClassificationLearningAlgorithmgetPredictionFunction in interface ClassificationLearningAlgorithmgetPredictionFunction in interface LearningAlgorithmgetPredictionFunction in class PassiveAggressiveClassificationpublic void setPredictionFunction(PredictionFunction predictionFunction)
LearningAlgorithmsetPredictionFunction in interface LearningAlgorithmCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.