public interface Learner
Modifier and Type | Method and Description |
---|---|
java.lang.String |
predict(Example e)
Returns the outcome predicted for the specified example
|
int[] |
test(DataSet ds)
Returns the accuracy of the hypothesis on the specified set of examples
|
void |
train(DataSet ds) |
void train(DataSet ds)
java.lang.String predict(Example e)
e
- an exampleint[] test(DataSet ds)
ds
- the test data set.