|
||||||||||
| 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.RandomRegressionForest
public class RandomRegressionForest
RandomRegressionForest: subtract mean and pls, then grow completely random trees (leaf: min .. 2min).
plus local regression models (-S 1 -C), min >> numPLScomps
-N <num> Number of trees. (default 100)
-M <num> Leaf threshold. (default 100)
-C <num> Number of PLS components. (default 20)
-S <num> Random number seed. (default 1)
-D If set, classifier is run in debug mode and may output additional info to the console
| Nested Class Summary | |
|---|---|
class |
RandomRegressionForest.Node
TODO: description of class |
| Field Summary | |
|---|---|
protected weka.core.Instances |
m_Data
the original header |
protected double |
m_Mean
the mean |
protected int |
m_Min
the minimum number of instances in subsets |
protected RandomRegressionForest.Node[] |
m_Node
the generated nodes |
protected int |
m_NumIterations
The number of iterations. |
protected int |
m_PLS
the number of components to use in PLS |
protected weka.filters.supervised.attribute.PLSFilter |
m_PLSFilter
the PLS filter used internally |
| Fields inherited from class weka.classifiers.RandomizableClassifier |
|---|
m_Seed |
| Fields inherited from class weka.classifiers.AbstractClassifier |
|---|
m_Debug |
| Constructor Summary | |
|---|---|
RandomRegressionForest()
|
|
| Method Summary | |
|---|---|
void |
buildClassifier(weka.core.Instances data)
builds the classifier |
protected weka.core.Instances |
centerClass(weka.core.Instances data)
Centers the class value in the 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. |
int |
getMin()
Gets the current leaf threshold. |
int |
getNumIterations()
Gets the number of iterations |
String[] |
getOptions()
Gets the current settings of the Classifier. |
int |
getPLS()
Gets the current number of PLS components to generate. |
String |
getRevision()
|
String |
globalInfo()
Returns a string describing this classifier. |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(String[] args)
Main method for testing this class. |
String |
minTipText()
Returns the tip text for this property |
String |
numIterationsTipText()
Returns the tip text for this property |
String |
PLSTipText()
Returns the tip text for this property |
void |
setMin(int value)
Sets the leaf threshold. |
void |
setNumIterations(int value)
Sets the number of iterations |
void |
setOptions(String[] options)
Parses a given list of options. |
void |
setPLS(int value)
Sets the number of PLS components to generate. |
String |
toString()
Returns description of the classifier. |
| 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 RandomRegressionForest.Node[] m_Node
protected int m_NumIterations
protected int m_PLS
protected int m_Min
protected weka.core.Instances m_Data
protected weka.filters.supervised.attribute.PLSFilter m_PLSFilter
protected double m_Mean
| Constructor Detail |
|---|
public RandomRegressionForest()
| 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
-N <num> Number of trees. (default 100)
-M <num> Leaf threshold. (default 100)
-C <num> Number of PLS components. (default 20)
-S <num> Random number seed. (default 1)
-D If set, classifier is run in debug mode and may output additional info to the console
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 String numIterationsTipText()
public void setNumIterations(int value)
value - the number of iterations to usepublic int getNumIterations()
public String minTipText()
public void setMin(int value)
value - the new leaf thresholdpublic int getMin()
public String PLSTipText()
public void setPLS(int value)
value - the number of PLS componentspublic int getPLS()
protected weka.core.Instances centerClass(weka.core.Instances data)
data - the data to work on
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 successfully
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 toString()
toString in class Objectpublic static void main(String[] args)
args - the optionspublic String getRevision()
getRevision in interface weka.core.RevisionHandlergetRevision in class weka.classifiers.AbstractClassifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||