Working With Source

You will primarily use Github if you are building these projects from source, or working with our examples. Our Github repositories for ND4J and Deeplearning4j are here.

Type the following into your command line to verify you have Git.

	git --version

Install git if you do not have it already.

Then check the list of applications installed on your computer for GitHub. If you don’t, set up a Github account. Download GitHub for Mac, Windows, etc. Once installed, git clone ND4J or DL4J by entering these commands into your console:

git clone
git clone
git clone

You might also want to clone our examples so you can mess around with ND4J or DL4J’s pre-built samples (the version will vary):

git clone

Another way to get the source code is by clicking on the “download ZIP” button from the ND4J GitHub page. Then unzip the file (you can use 7-zip to do that).

Maven can be used in conjunction with Git to ensure that ND4J, Canova and Deeplearning4j build correctly. To make sure you have the most recent, working version of these libraries, you can cd into their root directories and enter the following command into your prompt:

	mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true

Running a mvn clean install etc. on ND4J, Canova and Deeplearning4j, in that order, is a good way to get the most recent bug fixes and features.