|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmulan.classifier.MultiLabelLearnerBase
mulan.classifier.meta.MultiLabelMetaLearner
mulan.classifier.meta.thresholding.MLPTO
public class MLPTO
Class that implements the Multi Label Probabilistic Threshold Optimizer (MLTPTO). For more information, see
J.R. Quevedo, O. Luaces, A. Bahamonde (2012). Multilabel classifiers with a probabilistic thresholding strategy. Pattern Recognition. 45(2):876-883.
BibTeX:
@article{Quevedo2012, author = {J.R. Quevedo and O. Luaces and A. Bahamonde}, journal = {Pattern Recognition}, number = {2}, pages = {876-883}, publisher = {Elsevier}, title = {Multilabel classifiers with a probabilistic thresholding strategy}, volume = {45}, year = {2012}, ISSN = {0031-3203} }
Field Summary |
---|
Fields inherited from class mulan.classifier.meta.MultiLabelMetaLearner |
---|
baseLearner |
Fields inherited from class mulan.classifier.MultiLabelLearnerBase |
---|
featureIndices, labelIndices, numLabels |
Constructor Summary | |
---|---|
MLPTO()
Default constructor |
|
MLPTO(MultiLabelLearner baseLearner,
ExampleBasedBipartitionMeasureBase EBBM)
|
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. |
String |
globalInfo()
Returns a string describing the multi-label learner. |
protected MultiLabelOutput |
makePredictionInternal(Instance instance)
Produces the optimal bipartition output from a probabilistic multi label output for a predefined loss function. |
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 MLPTO()
public MLPTO(MultiLabelLearner baseLearner, ExampleBasedBipartitionMeasureBase EBBM)
baseLearner
- the underlying multi-label learnerEBBM
- the measure function to be optimized. The measure is
optimized minimizing the distance to its ideal value (using IdealValue()
method). For measures with 1 as ideal value, like F1 or Accuracy, this
algorithm searches for the highest value (the nearest to 1). For measures
with 0 as ideal value, like Hamming, this algorithm searches for the
lowest value (the nearest to 0).Method Detail |
---|
protected void buildInternal(MultiLabelInstances trainingData) throws Exception
MultiLabelLearnerBase
MultiLabelInstances
training data set. This method is called from MultiLabelLearnerBase.build(MultiLabelInstances)
method,
where behavior common across all learners is applied.
buildInternal
in class MultiLabelLearnerBase
trainingData
- the training data set
Exception
- if learner model was not created successfullyprotected MultiLabelOutput makePredictionInternal(Instance instance) throws Exception
makePredictionInternal
in class MultiLabelLearnerBase
instance
- Test example.
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 TechnicalInformationHandler
getTechnicalInformation
in class MultiLabelLearnerBase
public String globalInfo()
MultiLabelLearnerBase
globalInfo
in class MultiLabelLearnerBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |