Utsav Mangal
Utsav Mangal

Reputation: 47

How to use classifier for external purposes?

I have build a text classifier using sckit-learn. I have to use it in a app that is android based, but main problem is how do I use that in app. One thing I know that I can host a server and get data by requests but it will slow down the working of it, please suggest me some better ways.

Upvotes: 1

Views: 85

Answers (1)

user1808924
user1808924

Reputation: 4926

A possible workflow:

  1. Export the Scikit-Learn model in PMML data format using the JPMML-SkLearn library.
  2. Put the PMML file into App's resources directory (model is relatively stable over time) and/or fetch it from some PMML file download service (model changes often).
  3. Evaluate the PMML model in Android App using the JPMML-Android library.

Upvotes: 1

Related Questions