How can I call scikit-learn classifiers from Java?

前端 未结 6 1435
悲&欢浪女
悲&欢浪女 2020-12-07 17:00

I have a classifier that I trained using Python\'s scikit-learn. How can I use the classifier from a Java program? Can I use Jython? Is there some way to save the classifier

6条回答
  •  佛祖请我去吃肉
    2020-12-07 17:44

    I found myself in a similar situation. I'll recommend carving out a classifier microservice. You could have a classifier microservice which runs in python and then expose calls to that service over some RESTFul API yielding JSON/XML data-interchange format. I think this is a cleaner approach.

提交回复
热议问题