public static class TreeMeasuresCollector.TreeVotes extends TreeMeasuresCollector.TreeMeasures<TreeMeasuresCollector.TreeVotes>
_nrows, _ntrees
Constructor and Description |
---|
TreeMeasuresCollector.TreeVotes(double[] votes,
double[] nrows,
int ntrees) |
TreeMeasuresCollector.TreeVotes(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
double |
accuracy(int tidx)
Returns accuracy per individual trees.
|
TreeMeasuresCollector.TreeVotes |
append(double rightVotes,
double 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.
|
double[] |
votes()
Returns number of positive votes per tree.
|
accuracy, npredictors, nrows
public TreeMeasuresCollector.TreeVotes(int initialCapacity)
public TreeMeasuresCollector.TreeVotes(double[] votes, double[] nrows, int ntrees)
public final double[] 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(double rightVotes, double allRows)
public TreeMeasuresCollector.TreeVotes append(TreeMeasuresCollector.TreeVotes tv)
append
in class TreeMeasuresCollector.TreeMeasures<TreeMeasuresCollector.TreeVotes>