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

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

Introduction

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

Prototype

@Override
    public final void write(DataOutput out) throws IOException 

Source Link

Usage

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

License:Apache License

public void write(DataOutput dataOutput) throws IOException {
    dataOutput.writeInt(trees.size());//from  ww  w.j a  va  2 s  .c o m
    for (Node tree : trees) {
        tree.write(dataOutput);
    }
}