|
|||||||||
| 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.ExampleBasedFMeasureOptimizer
public class ExampleBasedFMeasureOptimizer
This class takes the marginal probabilities estimated for each label by a multi-label learner and transforms them into a bipartition which is approximately optimal for example-based FMeasure. This optimizer assumes independence of the target variables (labels) and the optimal solution always contains the labels with the highest marginal probabilities. For more information, see
David Lewis: Evaluating and optimizing autonomous text classification systems. In: Proceedings of the 18th annual international ACM SIGIR conference on Research and development in information retrieval (SIGIR 1995), 1995.
@inproceedings{Lewis1995,
author = {David Lewis},
booktitle = {Proceedings of the 18th annual international ACM SIGIR conference on Research and development in information retrieval (SIGIR 1995)},
title = {Evaluating and optimizing autonomous text classification systems},
year = {1995}
}
| Field Summary |
|---|
| Fields inherited from class mulan.classifier.meta.MultiLabelMetaLearner |
|---|
baseLearner |
| Fields inherited from class mulan.classifier.MultiLabelLearnerBase |
|---|
featureIndices, labelIndices, numLabels |
| Constructor Summary | |
|---|---|
ExampleBasedFMeasureOptimizer()
Default constructor |
|
ExampleBasedFMeasureOptimizer(MultiLabelLearner baseLearner)
The supplied multi-label learner should be able to output marginal probabilities. |
|
| Method Summary | |
|---|---|
protected void |
buildInternal(MultiLabelInstances trainingSet)
Learner specific implementation of building the model from MultiLabelInstances
training data set. |
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. |
| 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 ExampleBasedFMeasureOptimizer(MultiLabelLearner baseLearner)
baseLearner - public ExampleBasedFMeasureOptimizer()
| Method Detail |
|---|
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 learnerpublic TechnicalInformation getTechnicalInformation()
MultiLabelLearnerBase
getTechnicalInformation in interface TechnicalInformationHandlergetTechnicalInformation in class MultiLabelLearnerBasepublic String globalInfo()
MultiLabelLearnerBase
globalInfo in class MultiLabelLearnerBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||