Any suggestions / recommendations for preserving and reusing trained machine learning models? I develop models in Python or R. Then these models should be used in the production process for scoring (where R is not available). For example, there may exist a logistic regression model prepared in R. Now new observations must be taken for this model. The scoring engine must be fast and scalable. I was thinking about the following
PMML ( http://en.wikipedia.org/wiki/Predictive_Model_Markup_Language ). It is easy to convert most models developed in R to pmml. However, I could not find a useful counting mechanism for PMML models. For example, there is augustus ( https://code.google.com/p/augustus/ ), but it implements only 3-4 models.
Serialize models using pickle in Python and write to the consumer in Python.
Any thoughts / suggestions on the right approach?
Scikit-learn, pickle . , , .
, JSON . . , - Python, JSON .
, pickle python, :
import pickle s = pickle.dumps(clf) clf2 = pickle.loads(s)
joblib, , numpy , scikit-learn.
from sklearn.externals import joblib joblib.dump(clf, 'filename.pkl') clf = joblib.load('filename.pkl')
API- RESTful.
Source: https://habr.com/ru/post/1526735/More articles:Queue Limitation Over Time - rabbitmqLaravel: Redirect to custom class? - phpBest practice for creating a button in an Android app? - android"Error 87, this option is not recognized in this context", using DISM to enable IIS - iisGet the length of the array that contains element 0 when going to the function - c ++javax.faces.view.facelets.FaceletException: error analysis /template.xhtml: object "nbsp" referenced but not declared - doctypeI need to check if an enumeration element is included in an enumeration set - javacreate table without specifying in db / migrate rails - ruby | fooobar.comкак получить миниатюру сообщения с помощью сообщения id в wordpress? - phpHow to show / hide the search bar inside the navigation bar (iOS 7), as in the Apple Calendar app? - iosAll Articles