| 
|||||||||
| 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.EnsembleOfClassifierChains
public class EnsembleOfClassifierChains
 Class implementing the Ensemble of Classifier Chains(ECC) algorithm. For more information, see
 
 Read, Jesse, Pfahringer, Bernhard, Holmes, Geoff, Frank, Eibe: Classifier Chains for Multi-label Classification. In: , 335--359, 2011.
 
 @inproceedings{Read2011,
    author = {Read, Jesse and Pfahringer, Bernhard and Holmes, Geoff and Frank, Eibe},
    journal = {Machine Learning},
    number = {3},
    pages = {335--359},
    title = {Classifier Chains for Multi-label Classification},
    volume = {85},
    year = {2011}
 }
 
 
 
| Field Summary | |
|---|---|
protected  int | 
BagSizePercent
The size of each bag sample, as a percentage of the training size.  | 
protected  ClassifierChain[] | 
ensemble
An array of ClassifierChain models  | 
protected  int | 
numOfModels
The number of classifier chain models  | 
protected  Random | 
rand
Random number generator  | 
protected  double | 
samplingPercentage
The size of each sample, as a percentage of the training size Used when useSamplingWithReplacement is false  | 
protected  boolean | 
useConfidences
Whether the output is computed based on the average votes or on the average confidences  | 
protected  boolean | 
useSamplingWithReplacement
Whether to use sampling with replacement to create the data of the models of the ensemble  | 
| Fields inherited from class mulan.classifier.transformation.TransformationBasedMultiLabelLearner | 
|---|
baseClassifier | 
| Fields inherited from class mulan.classifier.MultiLabelLearnerBase | 
|---|
featureIndices, labelIndices, numLabels | 
| Constructor Summary | |
|---|---|
EnsembleOfClassifierChains()
Default constructor  | 
|
EnsembleOfClassifierChains(Classifier classifier,
                           int aNumOfModels,
                           boolean doUseConfidences,
                           boolean doUseSamplingWithReplacement)
Creates a new object  | 
|
| Method Summary | |
|---|---|
protected  void | 
buildInternal(MultiLabelInstances trainingSet)
Learner specific implementation of building the model from MultiLabelInstances
 training data set. | 
 int | 
getBagSizePercent()
Returns the size of each bag sample, as a percentage of the training size  | 
 double | 
getSamplingPercentage()
Returns the sampling percentage  | 
 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 classifier.  | 
protected  MultiLabelOutput | 
makePredictionInternal(Instance instance)
Learner specific implementation for predicting on specified data based on trained model.  | 
 void | 
setBagSizePercent(int bagSizePercent)
Sets the size of each bag sample, as a percentage of the training size  | 
 void | 
setSamplingPercentage(double samplingPercentage)
Sets the sampling percentage  | 
| 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 int numOfModels
protected ClassifierChain[] ensemble
protected Random rand
protected boolean useConfidences
protected boolean useSamplingWithReplacement
protected int BagSizePercent
protected double samplingPercentage
| Constructor Detail | 
|---|
public EnsembleOfClassifierChains()
public EnsembleOfClassifierChains(Classifier classifier,
                                  int aNumOfModels,
                                  boolean doUseConfidences,
                                  boolean doUseSamplingWithReplacement)
classifier - the base classifier for each ClassifierChain modelaNumOfModels - the number of modelsdoUseConfidences - doUseSamplingWithReplacement - | Method Detail | 
|---|
public int getBagSizePercent()
public void setBagSizePercent(int bagSizePercent)
bagSizePercent - the size of each bag sample, as a percentage of 
 the training sizepublic double getSamplingPercentage()
public void setSamplingPercentage(double samplingPercentage)
samplingPercentage - the sampling percentagepublic String globalInfo()
globalInfo in class TransformationBasedMultiLabelLearnerpublic TechnicalInformation getTechnicalInformation()
TransformationBasedMultiLabelLearner
getTechnicalInformation in interface TechnicalInformationHandlergetTechnicalInformation in class TransformationBasedMultiLabelLearner
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,
                                                  InvalidDataException
MultiLabelLearnerBaseMultiLabelLearnerBase.makePrediction(weka.core.Instance) which guards for model
 initialization and apply common handling/behavior.
makePredictionInternal in class MultiLabelLearnerBaseinstance - the data instance to predict on
Exception - if an error occurs while making the prediction.
InvalidDataException - if specified instance data is invalid and can not be processed by the learner
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||