How to Use Deeplearning4J in Android Apps

#artificialintelligence 

Usually, training a neural network is a task meant for powerful computers having multiple GPUs. But what if you want to do it on your humble Android phone or tablet? Considering an average Android device's specifications, however, it will most likely be quite slow. In this quick tutorial, I'll show you how to use Deeplearning4J, a popular Java-based deep learning library, to create and train a neural network on an Android device. To be able to use Deeplearning4J in your project, add the following compile dependencies to your app module's build.gradle As you can see, DL4J depends on ND4J, short for N-Dimensions for Java, which is a library that offers fast n-dimensional arrays.