|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.df.ErrorEstimate
public class ErrorEstimate
various methods to compute from the output of a random forest
Method Summary | |
---|---|
static double |
errorRate(int[] labels,
int[] predictions)
|
static int |
nbErrors(int[] labels,
int[] predictions)
Counts the number of instance that got bad predictions |
static int |
nbPredicted(int[] predictions)
Counts the number of classified instances (prediction != -1) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double errorRate(int[] labels, int[] predictions)
public static int nbPredicted(int[] predictions)
predictions
-
public static int nbErrors(int[] labels, int[] predictions)
labels
- predictions
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |