|
|||||||||
| 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.OneThreshold
public class OneThreshold
Class that estimates a single threshold for all labels and examples. For more information, see
Read, Jesse, Pfahringer, Bernhard, Holmes, Geoff: Multi-label Classification Using Ensembles of Pruned Sets. In: Data Mining, 2008. ICDM '08. Eighth IEEE International Conference on, 995-1000, 2008.
@inproceedings{Read2008,
author = {Read, Jesse and Pfahringer, Bernhard and Holmes, Geoff},
booktitle = {Data Mining, 2008. ICDM '08. Eighth IEEE International Conference on},
pages = {995-1000},
title = {Multi-label Classification Using Ensembles of Pruned Sets},
year = {2008},
location = {Pisa, Italy}
}
| Field Summary |
|---|
| Fields inherited from class mulan.classifier.meta.MultiLabelMetaLearner |
|---|
baseLearner |
| Fields inherited from class mulan.classifier.MultiLabelLearnerBase |
|---|
featureIndices, labelIndices, numLabels |
| Constructor Summary | |
|---|---|
OneThreshold()
Default constructor |
|
OneThreshold(MultiLabelLearner baseLearner,
BipartitionMeasureBase aMeasure)
|
|
OneThreshold(MultiLabelLearner baseLearner,
BipartitionMeasureBase aMeasure,
int someFolds)
|
|
| Method Summary | |
|---|---|
protected void |
buildInternal(MultiLabelInstances trainingData)
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. |
double |
getThreshold()
Returns the calculated threshold |
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 OneThreshold()
public OneThreshold(MultiLabelLearner baseLearner,
BipartitionMeasureBase aMeasure,
int someFolds)
baseLearner - the underlying multi=label learneraMeasure - the measure to optimizesomeFolds - number of cross-validation folds
public OneThreshold(MultiLabelLearner baseLearner,
BipartitionMeasureBase aMeasure)
baseLearner - the underlying multi=label learneraMeasure - measure to optimize| Method Detail |
|---|
protected void buildInternal(MultiLabelInstances trainingData)
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 MultiLabelLearnerBasetrainingData - 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 double getThreshold()
public String globalInfo()
MultiLabelLearnerBase
globalInfo in class MultiLabelLearnerBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||