|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.learn.Accuracy
public class Accuracy
This is the cross validation testing metric which LBJ defaults to when none is specified. It simply counts the number of correct predictions and returns that number divided by the total number of examples which it used for testing.
| Constructor Summary | |
|---|---|
Accuracy()
Standard constructor, takes no arguments and does nothing. |
|
| Method Summary | |
|---|---|
double |
test(Classifier classifier,
Classifier oracle,
Parser parser)
The test method is what LBJ calls during its testing stage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Accuracy()
| Method Detail |
|---|
public double test(Classifier classifier,
Classifier oracle,
Parser parser)
test method is what LBJ calls during its testing stage.
test in interface TestingMetricclassifier - The classifier whose accuracy is being measured.oracle - A classifier that returns the label of each example.parser - A parser to supply the example objects.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||