|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.df.DecisionForest
public class DecisionForest
Represents a forest of decision trees.
Constructor Summary | |
---|---|
protected |
DecisionForest()
|
|
DecisionForest(java.util.List<Node> trees)
|
Method Summary | |
---|---|
void |
classify(Data data,
PredictionCallback callback)
Classifies the data and calls callback for each classification |
int |
classify(java.util.Random rng,
Instance instance)
predicts the label for the instance |
boolean |
equals(java.lang.Object obj)
|
java.util.List<Node> |
getTrees()
|
int |
hashCode()
|
long |
meanMaxDepth()
Mean maximum depth per tree |
long |
meanNbNodes()
Mean number of nodes per tree |
long |
nbNodes()
Total number of nodes in all the trees |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DecisionForest()
public DecisionForest(java.util.List<Node> trees)
Method Detail |
---|
public java.util.List<Node> getTrees()
public void classify(Data data, PredictionCallback callback)
data
- callback
- public int classify(java.util.Random rng, Instance instance)
rng
- Random number generator, used to break ties randomlyinstance
-
public long meanNbNodes()
public long nbNodes()
public long meanMaxDepth()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |