public abstract static class TreeMeasuresCollector.TreeMeasures<T extends TreeMeasuresCollector.TreeMeasures>
extends water.Iced
Modifier and Type | Field and Description |
---|---|
protected double[] |
_nrows
Number of processed row per tree.
|
protected int |
_ntrees
Actual number of trees which votes are stored in this object
|
Constructor and Description |
---|
TreeMeasuresCollector.TreeMeasures(double[] nrows,
int ntrees) |
TreeMeasuresCollector.TreeMeasures(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
double[] |
accuracy() |
abstract double |
accuracy(int tidx)
Returns a list of accuracies per tree.
|
abstract T |
append(T t) |
abstract double[] |
imp(T right)
Compute variable importance with respect to given votes.
|
int |
npredictors()
Returns number of voting predictors
|
double[] |
nrows()
Returns number of rows which were used during voting per individual tree.
|
protected int _ntrees
protected double[] _nrows
public TreeMeasuresCollector.TreeMeasures(int initialCapacity)
public TreeMeasuresCollector.TreeMeasures(double[] nrows, int ntrees)
public final double[] nrows()
public final int npredictors()
public abstract double accuracy(int tidx)
public final double[] accuracy()
public abstract double[] imp(T right)
T
object represents correct votes.
This object represents votes over shuffled data.right
- individual tree measurements performed over not shuffled data.