Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Machine Learning Libraries For Android

I am trying build a small text mining tool for my android app. I am checking for a machine learning library that will allow me to cluster, classify etc.

Are there any machine learning libraries for android? I came across tensorflow but I need a bit more access to common ML functions.

like image 861
ssk Avatar asked Apr 27 '17 05:04

ssk


People also ask

Can we use machine learning in Android?

Run machine learning models in your Android, iOS, and Web apps. Google offers a range of solutions to use on-device ML to unlock new experiences in your apps. To tackle common challenges, we provide easy-to-use turn-key APIs.

Can I use TensorFlow with Android?

TensorFlow Lite lets you run TensorFlow machine learning (ML) models in your Android apps. The TensorFlow Lite system provides prebuilt and customizable execution environments for running models on Android quickly and efficiently, including options for hardware acceleration.

How do I add machine learning to my Android app?

The first step is to connect to Firebase services. To do this, you need to enter the Firebase console and create a new project. 3. If you use the on-device API, configure your app to automatically download the ML model to the device after your app is installed from the Play Store.

What is ML kit in Android?

ML Kit is a mobile SDK that brings Google's machine learning expertise to Android and iOS apps in a powerful yet easy-to-use package. Whether you're new or experienced in machine learning, you can implement the functionality you need in just a few lines of code.


2 Answers

You can try these ports of weka for android (they do not use the latest weka version, but it may be sufficient for your needs):

https://github.com/rjmarsan/Weka-for-Android

https://github.com/andrecamara/weka-android

like image 184
user1231818 Avatar answered Oct 17 '22 07:10

user1231818


TensorFlow does give you access to a huge number of machine learning functions.
Using tf.contrib.learn you don't even have to write the code for an optimizer.

You can use the optimizers that are already included in the library.
You only need to preprocess your data in a proper fashion and then feed it to the neural network.

Here's a link to an example provided by TensorFlow for Android:

https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android

like image 28
satyajith Avatar answered Oct 17 '22 08:10

satyajith