|
|||||||||
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.Meta
mulan.classifier.meta.thresholding.ThresholdPrediction
public class ThresholdPrediction
Class that learns to predict a different threshold per exampleFor more information, see
Elisseeff, Andre, Weston, Jason: A kernel method for multi-labelled classification. In: Proceedings of NIPS 14, 2002.
BibTeX:
@inproceedings{Elisseeff2002, author = {Elisseeff, Andre and Weston, Jason}, booktitle = {Proceedings of NIPS 14}, title = {A kernel method for multi-labelled classification}, year = {2002} }
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 | |
---|---|
ThresholdPrediction()
Default constructor |
|
ThresholdPrediction(MultiLabelLearner baseLearner,
Classifier classifier,
String metaDataChoice,
int folds)
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. |
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 ThresholdPrediction()
public ThresholdPrediction(MultiLabelLearner baseLearner, Classifier classifier, String metaDataChoice, int folds)
baseLearner
- the underlying multi-label learnerclassifier
- the binary classificationmetaDataChoice
- the type of meta-datafolds
- the number of internal cv foldsMethod Detail |
---|
protected MultiLabelOutput makePredictionInternal(Instance instance) throws Exception
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 Instances transformData(MultiLabelInstances trainingData) throws Exception
Meta
transformData
in class Meta
trainingData
- the training data set
Exception
public 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 |