|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.AbstractClassifier
weka.classifiers.RandomizableClassifier
weka.classifiers.trees.RandomModelTrees
public class RandomModelTrees
| Field Summary | |
|---|---|
protected weka.core.Instances |
m_data
|
protected int |
m_max
|
protected weka.classifiers.trees.Node[] |
m_node
|
protected int |
m_numIterations
The number of iterations. |
protected int |
m_numTrials
|
protected double |
m_ridge
|
| Fields inherited from class weka.classifiers.RandomizableClassifier |
|---|
m_Seed |
| Fields inherited from class weka.classifiers.AbstractClassifier |
|---|
m_Debug |
| Constructor Summary | |
|---|---|
RandomModelTrees()
|
|
| Method Summary | |
|---|---|
void |
buildClassifier(weka.core.Instances data)
|
double |
classifyInstance(weka.core.Instance instance)
Calculates the class membership probabilities for the given test instance. |
weka.core.Capabilities |
getCapabilities()
Returns default capabilities of the classifier. |
Comparator<weka.core.Instance>[] |
getComparators(int k)
|
int |
getMax()
|
int |
getNumIterations()
Gets the number of iterations. |
String[] |
getOptions()
Gets the current settings of the Classifier. |
String |
getRevision()
|
double |
getRidge()
|
int |
getTrials()
|
String |
globalInfo()
Returns a string describing classifier. |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(String[] argv)
Main method for testing this class. |
String |
maxTipText()
Returns the tip text for this property. |
String |
numIterationsTipText()
Returns the tip text for this property. |
String |
ridgeTipText()
Returns the tip text for this property. |
void |
setMax(int n)
|
void |
setNumIterations(int numIterations)
Sets the number of iterations. |
void |
setOptions(String[] options)
Parses a given list of options. |
void |
setRidge(double c)
|
void |
setTrials(int n)
|
String |
toString()
|
String |
toStringOLD()
Returns description of the bagged classifier. |
String |
trialsTipText()
Returns the tip text for this property. |
| Methods inherited from class weka.classifiers.RandomizableClassifier |
|---|
getSeed, seedTipText, setSeed |
| Methods inherited from class weka.classifiers.AbstractClassifier |
|---|
debugTipText, distributionForInstance, forName, getDebug, makeCopies, makeCopy, runClassifier, setDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected weka.classifiers.trees.Node[] m_node
protected int m_numIterations
protected int m_max
protected weka.core.Instances m_data
protected int m_numTrials
protected double m_ridge
| Constructor Detail |
|---|
public RandomModelTrees()
| Method Detail |
|---|
public String globalInfo()
public Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.classifiers.RandomizableClassifier
public void setOptions(String[] options)
throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class weka.classifiers.RandomizableClassifieroptions - the list of options as an array of strings
Exception - if an option is not supportedpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.classifiers.RandomizableClassifierpublic int getTrials()
public void setTrials(int n)
public String trialsTipText()
public double getRidge()
public void setRidge(double c)
public String ridgeTipText()
public void setNumIterations(int numIterations)
public int getNumIterations()
public String numIterationsTipText()
public int getMax()
public void setMax(int n)
public String maxTipText()
public weka.core.Capabilities getCapabilities()
getCapabilities in interface weka.classifiers.ClassifiergetCapabilities in interface weka.core.CapabilitiesHandlergetCapabilities in class weka.classifiers.AbstractClassifier
public void buildClassifier(weka.core.Instances data)
throws Exception
buildClassifier in interface weka.classifiers.Classifierdata - the training data to be used for generating the
Exception - if the classifier could not be built successfullypublic Comparator<weka.core.Instance>[] getComparators(int k)
public double classifyInstance(weka.core.Instance instance)
throws Exception
classifyInstance in interface weka.classifiers.ClassifierclassifyInstance in class weka.classifiers.AbstractClassifierinstance - the instance to be classified
Exception - if distribution can't be computed successfullypublic String toStringOLD()
public String toString()
toString in class Objectpublic String getRevision()
getRevision in interface weka.core.RevisionHandlergetRevision in class weka.classifiers.AbstractClassifierpublic static void main(String[] argv)
argv - the options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||