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

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

Introduction

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

Prototype

public static Node read(DataInput in) throws IOException 

Source Link

Usage

From source file:com.wsc.myexample.decisionForest.MyDecisionForest.java

License:Apache License

/**
 * Reads the trees from the input and adds them to the existing trees
 *//*from www  . j  ava2s  .com*/
public void readFields(DataInput dataInput) throws IOException {
    int size = dataInput.readInt();
    for (int i = 0; i < (size / 2); i++) {
        trees.add(Node.read(dataInput));
    }
}