Simple example about AI and Java
Prerequisite
- Java 8
- Maven
- Eclipse Build and import to Eclipse
$ mvn clean install $ mvn eclipse:eclipse
import: https://stackoverflow.com/questions/2061094/importing-maven-project-into-eclipse
Run from terminal
$ cd target && java -cp ai-1.0-SNAPSHOT.jar:lib/* org.example.App
More example at https://spark.apache.org/docs/2.3.1/ml-features.html