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