public class CC extends ProblemTransformationMethod implements weka.core.Randomizable, weka.core.TechnicalInformationHandler, MultiLabelDrawable
Modifier and Type | Field and Description |
---|---|
protected double[] |
confidences |
protected int[] |
m_Chain |
protected Random |
m_R |
protected int |
m_S |
protected CNode[] |
nodes |
m_InstancesTemplate
BATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT
BayesNet, Newick, NOT_DRAWABLE, TREE
Constructor and Description |
---|
CC() |
Modifier and Type | Method and Description |
---|---|
void |
buildClassifier(weka.core.Instances D) |
double[] |
distributionForInstance(weka.core.Instance x) |
double[] |
getConfidences()
GetConfidences - get the posterior probabilities of the previous prediction (after calling distributionForInstance(x)).
|
int |
getDefaultSeed() |
String |
getModel()
Returns a string representation of the model.
|
String[] |
getOptions() |
int |
getSeed() |
weka.core.TechnicalInformation |
getTechnicalInformation() |
weka.core.Instance[] |
getTransformTemplates(weka.core.Instance x)
GetTransformTemplates - pre-transform the instance x, to make things faster.
|
String |
globalInfo()
Description to display in the GUI.
|
Map<Integer,String> |
graph()
Returns a string that describes a graph representing
the object.
|
Map<Integer,Integer> |
graphType()
Returns the type of graph representing
the object.
|
Enumeration |
listOptions() |
static void |
main(String[] args) |
protected void |
prepareChain(int L)
Prepare a Chain.
|
void |
prepareChain(int[] chain)
Prepare a Chain.
|
double[] |
probabilityForInstance(weka.core.Instance x,
double[] path)
ProbabilityForInstance - Force our way down the imposed 'path'.
|
void |
rebuildClassifier(int[] new_chain,
weka.core.Instances D)
Rebuild - NOT YET IMPLEMENTED.
|
int[] |
retrieveChain() |
double[] |
sampleForInstance(weka.core.Instance x,
Random r)
SampleForInstance.
|
double[] |
sampleForInstanceFast(weka.core.Instance[] t_,
Random r)
SampleForInstance - given an Instance template for each label, and a Random.
|
String |
seedTipText() |
void |
setOptions(String[] options) |
void |
setSeed(int s) |
String |
toString() |
weka.core.Instance[] |
transformInstance(weka.core.Instance x)
TransformInstances - this function is DEPRECATED.
|
defaultClassifierString, evaluation, getCapabilities, getRevision, getTemplate, makeCopies, runClassifier, testCapabilities
classifierTipText, defaultClassifierOptions, getClassifier, getClassifierSpec, postExecution, preExecution, setClassifier
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 CNode[] nodes
protected int m_S
protected Random m_R
protected int[] m_Chain
protected double[] confidences
protected void prepareChain(int L)
L
- number of labelspublic void prepareChain(int[] chain)
chain
- a specified chainpublic int[] retrieveChain()
public void buildClassifier(weka.core.Instances D) throws Exception
buildClassifier
in interface weka.classifiers.Classifier
buildClassifier
in class ProblemTransformationMethod
Exception
public double[] getConfidences()
public double[] distributionForInstance(weka.core.Instance x) throws Exception
distributionForInstance
in interface weka.classifiers.Classifier
distributionForInstance
in class ProblemTransformationMethod
Exception
public double[] sampleForInstance(weka.core.Instance x, Random r) throws Exception
x
- test Instancer
- Random <- TODO probably can use this.m_R insteadException
public weka.core.Instance[] getTransformTemplates(weka.core.Instance x) throws Exception
Exception
public double[] sampleForInstanceFast(weka.core.Instance[] t_, Random r) throws Exception
t_
- Instance templates (pre-transformed) using #getTransformTemplates(x)Exception
public weka.core.Instance[] transformInstance(weka.core.Instance x) throws Exception
Exception
public double[] probabilityForInstance(weka.core.Instance x, double[] path) throws Exception
x
- test Instancepath
- the path we want to go downException
public void rebuildClassifier(int[] new_chain, weka.core.Instances D) throws Exception
new_chain
- the new chainD
- the original training dataException
public int getDefaultSeed()
public int getSeed()
getSeed
in interface weka.core.Randomizable
public void setSeed(int s)
setSeed
in interface weka.core.Randomizable
public String seedTipText()
public Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class weka.classifiers.SingleClassifierEnhancer
public void setOptions(String[] options) throws Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class weka.classifiers.SingleClassifierEnhancer
Exception
public String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class weka.classifiers.SingleClassifierEnhancer
public String globalInfo()
globalInfo
in class ProblemTransformationMethod
public weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface weka.core.TechnicalInformationHandler
public Map<Integer,Integer> graphType()
graphType
in interface MultiLabelDrawable
public Map<Integer,String> graph() throws Exception
graph
in interface MultiLabelDrawable
Exception
- if the graph can't be computedpublic String getModel()
getModel
in interface MultiLabelClassifier
getModel
in class ProblemTransformationMethod
public String toString()
toString
in class ProblemTransformationMethod
public static void main(String[] args)
Copyright © 2017. All Rights Reserved.