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, setOptions
batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
debugTipText, getDebug, getModel, setDebug
protected 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.Exception
public abstract weka.core.Instance transformInstance(weka.core.Instance x) throws Exception
x
- The instance to transform. Consists of features and labels.Exception
public 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.SingleClassifierEnhancer
public void setClassifier(weka.classifiers.Classifier newClassifier)
setClassifier
in class weka.classifiers.SingleClassifierEnhancer
protected weka.core.Instances extractPart(weka.core.Instances inst, boolean labels) throws Exception
inst
- The input instances.labels
- Return labels (true) or features (false)Exception
public void buildClassifier(weka.core.Instances D) throws Exception
buildClassifier
in interface weka.classifiers.Classifier
Exception
public double[] distributionForInstance(weka.core.Instance x) throws Exception
distributionForInstance
in interface weka.classifiers.Classifier
distributionForInstance
in class weka.classifiers.AbstractClassifier
Exception
public String getRevision()
getRevision
in interface weka.core.RevisionHandler
getRevision
in class weka.classifiers.AbstractClassifier
Copyright © 2017. All Rights Reserved.