mulan.classifier.transformation
Class LabelsetPruning

java.lang.Object
  extended by mulan.classifier.MultiLabelLearnerBase
      extended by mulan.classifier.transformation.TransformationBasedMultiLabelLearner
          extended by mulan.classifier.transformation.LabelPowerset
              extended by mulan.classifier.transformation.LabelsetPruning
All Implemented Interfaces:
Serializable, MultiLabelLearner, TechnicalInformationHandler
Direct Known Subclasses:
PPT, PrunedSets

public abstract class LabelsetPruning
extends LabelPowerset

Common functionality class for the PPT and PS algorithms

Version:
2012.02.27
Author:
Grigorios Tsoumakas
See Also:
Serialized Form

Field Summary
protected  int p
          parameter for the threshold of number of occurences of a labelset
 
Fields inherited from class mulan.classifier.transformation.LabelPowerset
makePredictionsBasedOnConfidences, Rand, threshold, transformation
 
Fields inherited from class mulan.classifier.transformation.TransformationBasedMultiLabelLearner
baseClassifier
 
Fields inherited from class mulan.classifier.MultiLabelLearnerBase
featureIndices, labelIndices, numLabels
 
Constructor Summary
LabelsetPruning(Classifier classifier, int aP)
          Constructor that initializes learner with base algorithm and main parameter
 
Method Summary
protected  void buildInternal(MultiLabelInstances mlDataSet)
          Learner specific implementation of building the model from MultiLabelInstances training data set.
 
Methods inherited from class mulan.classifier.transformation.LabelPowerset
makePredictionInternal, setConfidenceCalculationMethod, setMakePredictionsBasedOnConfidences, setSeed, setThreshold
 
Methods inherited from class mulan.classifier.transformation.TransformationBasedMultiLabelLearner
getBaseClassifier, getTechnicalInformation, globalInfo
 
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

p

protected int p
parameter for the threshold of number of occurences of a labelset

Constructor Detail

LabelsetPruning

public LabelsetPruning(Classifier classifier,
                       int aP)
Constructor that initializes learner with base algorithm and main parameter

Parameters:
classifier - base single-label classification algorithm
aP - number of instances required for a labelset to be included.
Method Detail

buildInternal

protected void buildInternal(MultiLabelInstances mlDataSet)
                      throws Exception
Description copied from class: MultiLabelLearnerBase
Learner specific implementation of building the model from MultiLabelInstances training data set. This method is called from MultiLabelLearnerBase.build(MultiLabelInstances) method, where behavior common across all learners is applied.

Overrides:
buildInternal in class LabelPowerset
Parameters:
mlDataSet - the training data set
Throws:
Exception - if learner model was not created successfully