public static class VariableImportance.TreeVotes extends VariableImportance.TreeMeasures<VariableImportance.TreeVotes>
_nrows, _ntrees
Constructor and Description |
---|
VariableImportance.TreeVotes(int initialCapacity) |
VariableImportance.TreeVotes(long[] votes,
long[] nrows,
int ntrees) |
Modifier and Type | Method and Description |
---|---|
double |
accuracy(int tidx)
Returns accuracy per individual trees.
|
VariableImportance.TreeVotes |
append(long rightVotes,
long allRows)
Append a tree votes to a list of trees.
|
VariableImportance.TreeVotes |
append(VariableImportance.TreeVotes tv) |
double[] |
imp(VariableImportance.TreeVotes right)
Compute variable importance with respect to given votes.
|
long[] |
votes()
Returns number of positive votes per tree.
|
accuracy, npredictors, nrows
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public VariableImportance.TreeVotes(int initialCapacity)
public VariableImportance.TreeVotes(long[] votes, long[] nrows, int ntrees)
public final long[] votes()
public final double accuracy(int tidx)
accuracy
in class VariableImportance.TreeMeasures<VariableImportance.TreeVotes>
public final double[] imp(VariableImportance.TreeVotes right)
VariableImportance.TreeVotes
object represents correct votes.
This object represents votes over shuffled data.imp
in class VariableImportance.TreeMeasures<VariableImportance.TreeVotes>
right
- individual tree voters performed over not shuffled data.public VariableImportance.TreeVotes append(long rightVotes, long allRows)
public VariableImportance.TreeVotes append(VariableImportance.TreeVotes tv)
append
in class VariableImportance.TreeMeasures<VariableImportance.TreeVotes>