List of usage examples for org.apache.mahout.classifier.df.node Node read
public static Node read(DataInput in) throws IOException
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)); } }