List of usage examples for org.apache.mahout.classifier.df.node Node maxDepth
public abstract long maxDepth();
From source file:com.wsc.myexample.decisionForest.MyDecisionForest.java
License:Apache License
/** * @return Mean maximum depth per tree/* www . j a v a2 s . c om*/ */ public long meanMaxDepth() { long sum = 0; for (Node tree : trees) { sum += tree.maxDepth(); } return sum / trees.size(); }