|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmulan.classifier.MultiLabelLearnerBase
mulan.classifier.meta.MultiLabelMetaLearner
mulan.classifier.meta.thresholding.Meta
mulan.classifier.meta.thresholding.MetaLabeler
public class MetaLabeler
Class implementing the MetaLabeler algorithm. For more information, see
Lei Tang, Sugu Rajan, Yijay K. Narayanan: Large scale multi-label classification via metalabeler. In: Proceedings of the 18th international conference on World wide web , 211-220, 2009.
@inproceedings{Tang2009,
author = {Lei Tang and Sugu Rajan and Yijay K. Narayanan},
booktitle = {Proceedings of the 18th international conference on World wide web },
pages = {211-220},
title = {Large scale multi-label classification via metalabeler},
year = {2009},
location = {Madrid, Spain}
}
| Field Summary |
|---|
| Fields inherited from class mulan.classifier.meta.thresholding.Meta |
|---|
classifier, classifierInstances, foldLearner, kFoldsCV, metaDatasetChoice |
| Fields inherited from class mulan.classifier.meta.MultiLabelMetaLearner |
|---|
baseLearner |
| Fields inherited from class mulan.classifier.MultiLabelLearnerBase |
|---|
featureIndices, labelIndices, numLabels |
| Constructor Summary | |
|---|---|
MetaLabeler()
Default constructor |
|
MetaLabeler(MultiLabelLearner baseLearner,
Classifier classifier,
String metaDataChoice,
String aClassChoice)
Constructor that initializes the learner |
|
| Method Summary | |
|---|---|
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 multi-label learner. |
protected MultiLabelOutput |
makePredictionInternal(Instance instance)
Learner specific implementation for predicting on specified data based on trained model. |
void |
setFolds(int f)
Sets the number of folds for internal cv |
protected Instances |
transformData(MultiLabelInstances trainingData)
abstract method that transforms the training data to meta data |
| Methods inherited from class mulan.classifier.meta.thresholding.Meta |
|---|
buildInternal, getClassifier, modifiedInstanceX, prepareClassifierInstances, valuesX |
| Methods inherited from class mulan.classifier.meta.MultiLabelMetaLearner |
|---|
getBaseLearner |
| 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 |
| Constructor Detail |
|---|
public MetaLabeler()
public MetaLabeler(MultiLabelLearner baseLearner,
Classifier classifier,
String metaDataChoice,
String aClassChoice)
baseLearner - the underlying multi-label learnerclassifier - the binary classificationmetaDataChoice - the type of meta-dataaClassChoice - the type of the class| Method Detail |
|---|
public TechnicalInformation getTechnicalInformation()
MultiLabelLearnerBase
getTechnicalInformation in interface TechnicalInformationHandlergetTechnicalInformation in class MultiLabelLearnerBase
protected MultiLabelOutput makePredictionInternal(Instance instance)
throws Exception
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
protected Instances transformData(MultiLabelInstances trainingData)
throws Exception
Meta
transformData in class MetatrainingData - the training data set
Exceptionpublic void setFolds(int f)
f - the number of foldspublic String globalInfo()
MultiLabelLearnerBase
globalInfo in class MultiLabelLearnerBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||