python - Using sciki- learn classifier into java program -
i've got trained scikit-learn classifier (python) , need use java program. know can store python classifier (clf) follow:
joblib.dump(clf, 'my_model.pkl', compress=_)
i know there python-weka-wrapper library wich can use weka classifiers in python, operate in opposite way. need way load *.pkl file java program, create classifier (for example using weka api) , initialize info contained in file. there way that?
one way create new weka classifier implements prediction api. classifier provide prediction api call passes along data indirectly executed python script returns predicted results. see http://weka.wikispaces.com/making+predictions , http://weka.sourceforge.net/doc.stable/weka/classifiers/evaluation/prediction.html
Comments
Post a Comment