public class PMCC extends MCC
NOTE: this implementation was faster, because the chain was only rebuilt from the first node which was different -- this is no longer the case (due to updates to way classifier chains works, using the CNode class).
MCC
,
Serialized FormConstructor and Description |
---|
PMCC() |
Modifier and Type | Method and Description |
---|---|
void |
buildClassifier(weka.core.Instances D) |
double[] |
distributionForInstance(weka.core.Instance x) |
int |
getM()
Get the population size
|
java.lang.String[] |
getOptions() |
java.lang.String |
globalInfo()
Description to display in the GUI.
|
java.util.Enumeration |
listOptions() |
static void |
main(java.lang.String[] args) |
static int[] |
pi(int[] s,
java.util.Random r,
int t,
double beta)
pi - proposal distribution; swap elements in s, depending on iteration t (temperature).
|
void |
setM(int M)
Set the population size
|
void |
setOptions(java.lang.String[] options) |
getChainIterations, getInferenceInterations, getTechnicalInformation, likelihood, likelihood, setChainIterations, setInferenceInterations
getChain, getConfidences, getSeed, getTransformTemplates, probabilityForInstance, rebuildClassifier, sampleForInstance, sampleForInstanceFast, setChain, setSeed, transformInstance
evaluation, getCapabilities, getRevision, getTemplate, makeCopies, runClassifier, testCapabilities, toString
classifierTipText, getClassifier, setClassifier
public static int[] pi(int[] s, java.util.Random r, int t, double beta)
s
- a chain sequencer
- a random number generatort
- the current iterationpublic void buildClassifier(weka.core.Instances D) throws java.lang.Exception
buildClassifier
in interface weka.classifiers.Classifier
buildClassifier
in class MCC
java.lang.Exception
public double[] distributionForInstance(weka.core.Instance x) throws java.lang.Exception
distributionForInstance
in interface weka.classifiers.Classifier
distributionForInstance
in class MCC
java.lang.Exception
public java.util.Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class MCC
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class MCC
java.lang.Exception
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class MCC
public void setM(int M)
public int getM()
public java.lang.String globalInfo()
CC
globalInfo
in class MCC
public static void main(java.lang.String[] args)