All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hex.tree.gbm.ResidualsCollector Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
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