public abstract class LabelTransformationClassifier extends weka.classifiers.SingleClassifierEnhancer implements MultiLabelClassifier
| Modifier | Constructor and Description |
|---|---|
protected |
LabelTransformationClassifier()
Default constructor using BR.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildClassifier(weka.core.Instances D) |
protected String |
defaultClassifierString() |
double[] |
distributionForInstance(weka.core.Instance x) |
protected weka.core.Instances |
extractPart(weka.core.Instances inst,
boolean labels)
Returns a new set of instances either only with the labels (labels = true) or
only the features (labels = false)
|
protected weka.classifiers.Classifier |
getDefaultClassifier() |
String |
getRevision() |
void |
setClassifier(weka.classifiers.Classifier newClassifier) |
void |
testCapabilities(weka.core.Instances D)
TestCapabilities.
|
abstract weka.core.Instance |
transformInstance(weka.core.Instance x)
Transforms the instance in the prediction process before given to the internal multi-label
or multi-target classifier.
|
abstract weka.core.Instances |
transformLabels(weka.core.Instances D)
The method to transform the labels into another set of latent labels,
typically a compression method is used, e.g., Boolean matrix decomposition
in the case of MLC-BMaD, or matrix multiplication based on SVD for PLST.
|
abstract double[] |
transformPredictionsBack(double[] y)
Transforms the predictions of the internal classifier back to the original labels.
|
classifierTipText, defaultClassifierOptions, getCapabilities, getClassifier, getClassifierSpec, getOptions, listOptions, postExecution, preExecution, setOptionsbatchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlacesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebugTipText, getDebug, getModel, setDebugprotected LabelTransformationClassifier()
public abstract weka.core.Instances transformLabels(weka.core.Instances D)
throws Exception
D - the instances to transform into new instances with transformed labels. The
Instances consist of features and original labels.Exceptionpublic abstract weka.core.Instance transformInstance(weka.core.Instance x)
throws Exception
x - The instance to transform. Consists of features and labels.Exceptionpublic abstract double[] transformPredictionsBack(double[] y)
y - The predictions that should be transformed back. The array consists only of
the predictions as they are returned from the internal classifier.protected weka.classifiers.Classifier getDefaultClassifier()
protected String defaultClassifierString()
defaultClassifierString in class weka.classifiers.SingleClassifierEnhancerpublic void setClassifier(weka.classifiers.Classifier newClassifier)
setClassifier in class weka.classifiers.SingleClassifierEnhancerprotected weka.core.Instances extractPart(weka.core.Instances inst,
boolean labels)
throws Exception
inst - The input instances.labels - Return labels (true) or features (false)Exceptionpublic void buildClassifier(weka.core.Instances D)
throws Exception
buildClassifier in interface weka.classifiers.ClassifierExceptionpublic double[] distributionForInstance(weka.core.Instance x)
throws Exception
distributionForInstance in interface weka.classifiers.ClassifierdistributionForInstance in class weka.classifiers.AbstractClassifierExceptionpublic String getRevision()
getRevision in interface weka.core.RevisionHandlergetRevision in class weka.classifiers.AbstractClassifierCopyright © 2017. All Rights Reserved.