public abstract static class VariableImportance.TreeMeasures<T extends VariableImportance.TreeMeasures> extends Iced
Modifier and Type | Field and Description |
---|---|
protected long[] |
_nrows
Number of processed row per tree.
|
protected int |
_ntrees
Actual number of trees which votes are stored in this object
|
Constructor and Description |
---|
VariableImportance.TreeMeasures(int initialCapacity) |
VariableImportance.TreeMeasures(long[] nrows,
int ntrees) |
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
|
long[] |
nrows()
Returns number of rows which were used during voting per individual tree.
|
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
protected int _ntrees
protected long[] _nrows
public VariableImportance.TreeMeasures(int initialCapacity)
public VariableImportance.TreeMeasures(long[] nrows, int ntrees)
public final long[] 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.