|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mulan.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 foldspublic OneThreshold(MultiLabelLearner baseLearner, BipartitionMeasureBase aMeasure)
baseLearner
- the underlying multi=label learneraMeasure
- measure to optimizeMethod 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, InvalidDataException
MultiLabelLearnerBase
MultiLabelLearnerBase.makePrediction(weka.core.Instance)
which guards for model
initialization and apply common handling/behavior.
makePredictionInternal
in class MultiLabelLearnerBase
instance
- 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 TechnicalInformationHandler
getTechnicalInformation
in class MultiLabelLearnerBase
public 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 |