|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmulan.classifier.MultiLabelLearnerBase
mulan.classifier.transformation.TransformationBasedMultiLabelLearner
mulan.classifier.transformation.CalibratedLabelRanking
public class CalibratedLabelRanking
Class implementing the Calibrated Label Ranking (CLR) algorithm. For more information, see
Fuernkranz, Johannes, Huellermeier, Eyke, Loza Mencia, Eneldo, Brinker, Klaus (2008). Multilabel classification via calibrated label ranking. Machine Learning. 73(2):133--153.
@article{Fuernkranz2008,
author = {Fuernkranz, Johannes and Huellermeier, Eyke and Loza Mencia, Eneldo and Brinker, Klaus},
journal = {Machine Learning},
number = {2},
pages = {133--153},
title = {Multilabel classification via calibrated label ranking},
volume = {73},
year = {2008}
}
| Field Summary | |
|---|---|
protected Instances[] |
metaDataTest
headers of the training sets of the one vs one models |
protected boolean[] |
nodata
whether no data exist for one-vs-one learning |
protected int |
numModels
number of one vs one models |
protected Classifier[] |
oneVsOneModels
array holding the one vs one models |
protected Instances |
trainingdata
temporary training data for each one vs one model |
protected BinaryRelevance |
virtualLabelModels
binary relevance models for the virtual label |
| Fields inherited from class mulan.classifier.transformation.TransformationBasedMultiLabelLearner |
|---|
baseClassifier |
| Fields inherited from class mulan.classifier.MultiLabelLearnerBase |
|---|
featureIndices, labelIndices, numLabels |
| Constructor Summary | |
|---|---|
CalibratedLabelRanking()
Default constructor using J48 as underlying classifier |
|
CalibratedLabelRanking(Classifier classifier)
Constructor that initializes the learner with a base algorithm |
|
| Method Summary | |
|---|---|
protected void |
buildInternal(MultiLabelInstances trainingSet)
Learner specific implementation of building the model from MultiLabelInstances
training data set. |
boolean |
getStandardVoting()
Get whether standard voting is turned on. |
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on. |
String |
globalInfo()
Returns a string describing the classifier. |
protected MultiLabelOutput |
makePredictionInternal(Instance instance)
This method does a prediction for an instance with the values of label missing Temporary included to switch between standard voting and qweighted multilabel voting |
MultiLabelOutput |
makePredictionQW(Instance instance)
This method does a prediction for an instance with the values of label missing according to QWeighted algorithm for Multilabel Classification (QCMLPP2), which is described in : Loza Mencia, E., Park, S. |
MultiLabelOutput |
makePredictionStandard(Instance instance)
This method does a prediction for an instance with the values of label missing |
void |
setStandardVoting(boolean standardVoting)
Set Prediction to standard voting mode. |
| Methods inherited from class mulan.classifier.transformation.TransformationBasedMultiLabelLearner |
|---|
getBaseClassifier |
| Methods inherited from class mulan.classifier.MultiLabelLearnerBase |
|---|
build, debug, getDebug, isModelInitialized, isUpdatable, makeCopy, makePrediction, setDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Classifier[] oneVsOneModels
protected int numModels
protected Instances trainingdata
protected Instances[] metaDataTest
protected BinaryRelevance virtualLabelModels
protected boolean[] nodata
| Constructor Detail |
|---|
public CalibratedLabelRanking()
public CalibratedLabelRanking(Classifier classifier)
classifier - the binary classification algorithm to use| Method Detail |
|---|
public void setStandardVoting(boolean standardVoting)
standardVoting - true if standard voting should be usedpublic boolean getStandardVoting()
true if standard voting is on
protected void buildInternal(MultiLabelInstances trainingSet)
throws Exception
MultiLabelLearnerBaseMultiLabelInstances
training data set. This method is called from MultiLabelLearnerBase.build(MultiLabelInstances) method,
where behavior common across all learners is applied.
buildInternal in class MultiLabelLearnerBasetrainingSet - the training data set
Exception - if learner model was not created successfully
protected MultiLabelOutput makePredictionInternal(Instance instance)
throws Exception
makePredictionInternal in class MultiLabelLearnerBaseinstance -
Exception
InvalidDataException - if specified instance data is invalid and can not be processed by the learner
public MultiLabelOutput makePredictionStandard(Instance instance)
throws Exception
instance -
Exception
public MultiLabelOutput makePredictionQW(Instance instance)
throws Exception
instance -
Exceptionpublic String globalInfo()
globalInfo in class TransformationBasedMultiLabelLearnerpublic TechnicalInformation getTechnicalInformation()
TransformationBasedMultiLabelLearner
getTechnicalInformation in interface TechnicalInformationHandlergetTechnicalInformation in class TransformationBasedMultiLabelLearner
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||