xgboost-predictor/src/main/java/biz/k11i/xgboost/tree/RegTreeImpl.java
public void loadModel(ModelReader reader) throws IOException {
        param = new Param(reader);

        nodes = new Node[param.num_nodes];
        for (int i = 0; i < param.num_nodes; i++) {
            nodes[i] = new Node(reader);
        }

        stats = new RTreeNodeStat[param.num_nodes];
        for (int i = 0; i < param.num_nodes; i++) {
            stats[i] = new RTreeNodeStat(reader);
        }
    }
public void loadModel(ModelReader reader) throws IOException {
        param = new Param(reader);

        nodes = new Node[param.num_nodes];
        for (int i = 0; i < param.num_nodes; i++) {
            nodes[i] = new Node(reader);
        }

        stats = new RTreeNodeStat[param.num_nodes];
        for (int i = 0; i < param.num_nodes; i++) {
            stats[i] = new RTreeNodeStat(reader);
        }
    }
public void loadModel ( ModelReader reader ) throws IOException { param = new Param ( reader ) ; nodes = new Node [ param . num_nodes ] ; for ( int i = 0 ; i < param . num_nodes ; i ++ ) { nodes [ i ] = new Node ( reader ) ; } stats = new RTreeNodeStat [ param . num_nodes ] ; for ( int i = 0 ; i < param . num_nodes ; i ++ ) { stats [ i ] = new RTreeNodeStat ( reader ) ; } }
Loads model from stream.

@param reader input stream
@throws IOException If an I/O error occurs
Loads model from stream .