aima.core.learning.framework.Learner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
The newest version!
package aima.core.learning.framework;
/**
* @author Ravi Mohan
*
*/
public interface Learner {
void train(DataSet ds);
/**
* Returns the outcome predicted for the specified example
*
* @param e
* an example
*
* @return the outcome predicted for the specified example
*/
String predict(Example e);
/**
* Returns the accuracy of the hypothesis on the specified set of examples
*
* @param ds
* the test data set.
*
* @return the accuracy of the hypothesis on the specified set of examples
*/
int[] test(DataSet ds);
}