hex.tree.gbm.ResidualsCollector Maven / Gradle / Ivy
package hex.tree.gbm;
import java.util.Arrays;
import hex.tree.DTreeScorer;
import water.Key;
import water.fvec.Chunk;
public class ResidualsCollector extends DTreeScorer {
public ResidualsCollector(int ncols, int nclass, Key[][] treeKeys) {
super(ncols, nclass, treeKeys);
}
@Override public void map(Chunk[] chks) {
double[] data = new double[_ncols];
double [] preds = new double[_nclass+1];
int ntrees = ntrees();
Chunk cys = chk_resp(chks);
for( int tidx=0; tidx
© 2015 - 2025 Weber Informatics LLC | Privacy Policy