This is machine learning library, written in Java and providing various machine learning algorithms. Mostly contributed by people form Applied Mathematics faculty of SPBSU.
-
Use command line instead IDEA to checkout it in order to avoid problems with git submodule downloading. To clone project run
git clone --recurse-submodules [email protected]:spbsu-ml-community/jmll.git
-
cd
to the {project_dir}/commons and rungit checkout master
. It will switch current branch in commons tomaster
. Now if you update JMLL project,commons
will be updated too.
Remember that git submodule is just a pointer to particular commit of the another repository. And if you update 'commons' please update this pointer by committing 'commons' dir in JMLL directory.
We use Apache Maven for managing our project. You need Maven 3 to be installed on your computer. If you don't already have it (check with mvn -version
command), install it. On Mac OS it can also be done with Homebrew (brew install maven
) or MacPorts (sudo port install maven3
), on Linux -- with standard "apt-get" instllation tool (sudo apt-get install maven
). Check Maven version after installation with mvn -version
command.
- Open IntelliJ Idea, select File -> Import Project. In file selection dialog box choose pom.xml file located in project root directory.
- On the first page of "Import Project from Maven" window check "Import Maven projects automatically" and leave other settings by default. Click "Environment settings..." button and check that your Maven 3 installation is recognized by IntelliJ Idea. If not, specify the path to Maven home directory.
- On SDK selection page select Java 1.7 SDK.
- When clicking "Finish" on the last page of "Import Project from Maven" window IntelliJ Idea will warn you that ".idea" folder already exists and its content may be overwritten. Click "Yes" -- run configurations and other settings that we share won't be overwritten.
- Wait until IntelliJ Idea downloads and resolves project dependencies. If it will ask you to reload project due to language level changes, do it.
- Open "Maven Projects" tool window (View -> Tool Windows -> Maven Projects or just a "Maven Projects" button at the right side of IntelliJ Idea window) and check that there are no red-underlined modules. If there are some, click "Reimport All Maven Projects" button (button with blue cycled arrows at the left of the toolbar in the "Maven Projects" tool window).
- Run tests to check that project is imported correctly, everything compiles and tests passes.
Enjoy!