Example usage for org.apache.mahout.classifier.df.node Node maxDepth

List of usage examples for org.apache.mahout.classifier.df.node Node maxDepth

Introduction

In this page you can find the example usage for org.apache.mahout.classifier.df.node Node maxDepth.

Prototype

public abstract long maxDepth();

Source Link

Usage

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();
}