
hex.tree.DTreeScorer Maven / Gradle / Ivy
package hex.tree;
import water.*;
public abstract class DTreeScorer> extends MRTask {
protected final int _ncols;
protected final int _nclass;
protected final int _skip;
protected final Key[][] _treeKeys;
protected transient CompressedTree[][] _trees;
protected SharedTree _st;
public DTreeScorer(int ncols, int nclass, SharedTree st, Key[][] treeKeys) {
_ncols = ncols;
_nclass = nclass;
_treeKeys = treeKeys;
_st = st;
_skip = _st.numSpecialCols();
}
protected int ntrees() { return _trees.length; }
@Override protected final void setupLocal() {
int ntrees = _treeKeys.length;
_trees = new CompressedTree[ntrees][];
for (int t=0; t
© 2015 - 2025 Weber Informatics LLC | Privacy Policy