public abstract class ProblemTransformationMethod extends weka.classifiers.SingleClassifierEnhancer implements MultiLabelClassifier
Modifier and Type | Field and Description |
---|---|
protected weka.core.Instances |
m_InstancesTemplate
A Template for Problem Transformations
|
Constructor and Description |
---|
ProblemTransformationMethod() |
Modifier and Type | Method and Description |
---|---|
abstract void |
buildClassifier(weka.core.Instances trainingSet) |
protected String |
defaultClassifierString() |
abstract double[] |
distributionForInstance(weka.core.Instance i) |
static void |
evaluation(MultiLabelClassifier h,
String[] args)
Called by classifier's main() method upon initialisation from the command line.
|
weka.core.Capabilities |
getCapabilities() |
String |
getModel()
Returns a string representation of the model.
|
String |
getRevision() |
weka.core.Instances |
getTemplate() |
String |
globalInfo()
Description to display in the GUI.
|
static MultiLabelClassifier[] |
makeCopies(MultiLabelClassifier model,
int num)
Creates a given number of deep copies of the given multi-label classifier using serialization.
|
static void |
runClassifier(MultiLabelClassifier h,
String[] args)
Called by classifier's main() method upon initialisation from the command line.
|
void |
testCapabilities(weka.core.Instances D)
TestCapabilities.
|
String |
toString() |
classifierTipText, defaultClassifierOptions, getClassifier, getClassifierSpec, getOptions, listOptions, postExecution, preExecution, setClassifier, 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, wait, wait, wait
debugTipText, getDebug, setDebug
protected weka.core.Instances m_InstancesTemplate
public String globalInfo()
protected String defaultClassifierString()
defaultClassifierString
in class weka.classifiers.SingleClassifierEnhancer
public String getModel()
getModel
in interface MultiLabelClassifier
public weka.core.Instances getTemplate()
public void testCapabilities(weka.core.Instances D) throws Exception
D
- the dataException
public weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.classifiers.Classifier
getCapabilities
in interface weka.core.CapabilitiesHandler
getCapabilities
in class weka.classifiers.SingleClassifierEnhancer
public abstract void buildClassifier(weka.core.Instances trainingSet) throws Exception
buildClassifier
in interface weka.classifiers.Classifier
Exception
public abstract double[] distributionForInstance(weka.core.Instance i) 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
public static MultiLabelClassifier[] makeCopies(MultiLabelClassifier model, int num) throws Exception
model
- the classifier to copynum
- the number of classifier copies to create.Exception
- if an error occurspublic static void evaluation(MultiLabelClassifier h, String[] args)
h
- A classifierargs
- Command-line options.public static void runClassifier(MultiLabelClassifier h, String[] args)
h
- A classifierargs
- Command-line options.Copyright © 2017. All Rights Reserved.