Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using sklearn in android device

I am currently using sklearn doing machine learning for the sensor data I collected from an android device.

But the thing is I need to do predictions after the model is trained. Since there will be lots of sensor data generated in a very short time, doing predicting in a server or some other machine is my last choice.

Then it comes to me that is there a way I could do sklearn in android? I could think of three solutions:

  1. Is it possible to run sklearn in android and just let the sklearn script to do the prediction?

  2. If not 1, is it possible for me to use some intermediate library in java (android) to pick up the model I trained in python?

  3. If not 1 and 2, is it possible for me to use some other machine learning library that is supported in the android platform?

like image 569
Tim Raynor Avatar asked Apr 11 '14 06:04

Tim Raynor


1 Answers

I work on a project that called sklearn-porter which ports trained models to a low level programming language like C, Java and JavaScript. More classifiers and regressors will be added at given time.

like image 108
Darius Avatar answered Oct 05 '22 02:10

Darius