在Android设备中使用sklearn [英] Using sklearn in android device

查看:354
本文介绍了在Android设备中使用sklearn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用sklearn对从Android设备收集的传感器数据进行机器学习.

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.

然后我想到有什么办法可以在android中做sklearn吗?我可以想到三种解决方案:

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

  1. 是否可以在android中运行sklearn并让sklearn脚本进行预测?

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

如果不为1,我是否可以使用Java(android)中的某个中间库来提取我在python中训练的模型?

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?

如果不是1和2,我是否可以使用android平台支持的其他一些机器学习库?

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

推荐答案

我正在研究一个名为 sklearn的项目-porter ,将训练有素的模型移植到C,Java和JavaScript等低级编程语言.在给定的时间将添加更多的分类器和回归器.

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.

这篇关于在Android设备中使用sklearn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆