Idibon ML Core
To get started, download and install JDK 8 from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Then, install Gradle 2.9 using the wrapper provided in this repository
idiml.git$ ./gradlew dependencies
To see a list of all supported build tasks, run
./gradlew tasks from
the command line.
Tasks can be specified for individual projects by prefixing the task
with the project name, e.g.
./gradlew predict:jar to run the
task within the
You can build all of the projects by executing the
jar task, either
individually (like in the introduction above), or for all tasks:
Running in the Scala REPL
If you want to start the Scala REPL to try out some code quickly, you
can launch it using:
./gradlew ml-app:scalaConsole -q
The REPL includes all of the idiml code dependencies in the class path, so this is a good way to quickly experiment with new libraries.
Run unit tests with the
./gradlew test. Unit testing is
performed with ScalaTest. HTML test results
for each project are stored in the project's
./gradlew reportScoveragewill create the HTML report to view
Setting up Intellij
There are two ways to setup intellij:
./gradlew ideawhich will create intellij project files.
- Then in intellij import an existing project from the produced project files.
- Import an existing gradle project, and point it to the
You will probably then need to tweak things to get say unit tests to work. To do that, click the top right hand icon next to the magnifying glass. It will show you the project structure. Make sure you have the following set:
SDKsthat Java 1.8 is set.
global librariesyou have the Scala SDK - 2.11.7.
Modulesthat you have for
ml-appthe compiler output is set to
use module compile output path.
- You should now be able to run unit tests and the ml-app even.