public static class TreeVotesCollector.TreeVotes extends Iced
| Constructor and Description |
|---|
TreeVotesCollector.TreeVotes(int initialCapacity) |
TreeVotesCollector.TreeVotes(long[] treeCVotes,
long[] nrows,
int ntrees) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
accuracy()
Returns accuracy per individual trees.
|
TreeVotesCollector.TreeVotes |
append(long rightVotes,
long allRows)
Append a tree votes to a list of trees.
|
TreeVotesCollector.TreeVotes |
append(TreeVotesCollector.TreeVotes tv) |
double[] |
imp(TreeVotesCollector.TreeVotes right)
Compute variable importance with respect to given votes.
|
int |
npredictors() |
long[] |
nrows()
Returns number of rows which were used during voting per individual tree.
|
java.lang.String |
toString() |
long[] |
treeCVotes()
Returns number of positive votes per tree.
|
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFieldspublic TreeVotesCollector.TreeVotes(int initialCapacity)
public TreeVotesCollector.TreeVotes(long[] treeCVotes,
long[] nrows,
int ntrees)
public final long[] nrows()
public final long[] treeCVotes()
public final int npredictors()
public final double[] accuracy()
public final double[] imp(TreeVotesCollector.TreeVotes right)
TreeVotesCollector.TreeVotes object represents correct votes.
This object represents votes over shuffled data.right - individual tree voters performed over not shuffled data.public TreeVotesCollector.TreeVotes append(long rightVotes, long allRows)
public TreeVotesCollector.TreeVotes append(TreeVotesCollector.TreeVotes tv)
public java.lang.String toString()
toString in class java.lang.Object