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_InstancesTemplateBATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULTBayesNet, 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, testCapabilitiesclassifierTipText, defaultClassifierOptions, getClassifier, getClassifierSpec, postExecution, preExecution, setClassifierbatchSizeTipText, 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, wait, wait, waitdebugTipText, getDebug, setDebugprotected 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.ClassifierbuildClassifier in class ProblemTransformationMethodExceptionpublic double[] getConfidences()
public double[] distributionForInstance(weka.core.Instance x)
throws Exception
distributionForInstance in interface weka.classifiers.ClassifierdistributionForInstance in class ProblemTransformationMethodExceptionpublic double[] sampleForInstance(weka.core.Instance x,
Random r)
throws Exception
x - test Instancer - Random <- TODO probably can use this.m_R insteadExceptionpublic weka.core.Instance[] getTransformTemplates(weka.core.Instance x)
throws Exception
Exceptionpublic double[] sampleForInstanceFast(weka.core.Instance[] t_,
Random r)
throws Exception
t_ - Instance templates (pre-transformed) using #getTransformTemplates(x)Exceptionpublic weka.core.Instance[] transformInstance(weka.core.Instance x)
throws Exception
Exceptionpublic double[] probabilityForInstance(weka.core.Instance x,
double[] path)
throws Exception
x - test Instancepath - the path we want to go downExceptionpublic void rebuildClassifier(int[] new_chain,
weka.core.Instances D)
throws Exception
new_chain - the new chainD - the original training dataExceptionpublic int getDefaultSeed()
public int getSeed()
getSeed in interface weka.core.Randomizablepublic void setSeed(int s)
setSeed in interface weka.core.Randomizablepublic String seedTipText()
public Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.classifiers.SingleClassifierEnhancerpublic void setOptions(String[] options) throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class weka.classifiers.SingleClassifierEnhancerExceptionpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.classifiers.SingleClassifierEnhancerpublic String globalInfo()
globalInfo in class ProblemTransformationMethodpublic weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface weka.core.TechnicalInformationHandlerpublic Map<Integer,Integer> graphType()
graphType in interface MultiLabelDrawablepublic Map<Integer,String> graph() throws Exception
graph in interface MultiLabelDrawableException - if the graph can't be computedpublic String getModel()
getModel in interface MultiLabelClassifiergetModel in class ProblemTransformationMethodpublic String toString()
toString in class ProblemTransformationMethodpublic static void main(String[] args)
Copyright © 2017. All Rights Reserved.