public abstract class AbstractMultiLabelClassifier extends weka.classifiers.AbstractClassifier implements MultiLabelClassifier
Constructor and Description |
---|
AbstractMultiLabelClassifier() |
Modifier and Type | Method and Description |
---|---|
abstract void |
buildClassifier(weka.core.Instances trainingSet) |
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.
|
String |
getModel()
Returns a string representation of the model.
|
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() |
batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getOptions, getRevision, implementsMoreEfficientBatchPrediction, listOptions, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces, setOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
debugTipText, getDebug, setDebug
public String globalInfo()
public String getModel()
getModel
in interface MultiLabelClassifier
public void testCapabilities(weka.core.Instances D) throws Exception
D
- the dataException
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 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.