Python scikit-learn: exporting trained classifier

后端 未结 3 1343
野性不改
野性不改 2021-01-30 00:43

I am using a DBN (deep belief network) from nolearn based on scikit-learn.

I have already built a Network which can classify my data very well, now I am interested in ex

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 01:23

    Pickling/unpickling has the disadvantage that it only works with matching python versions (major and possibly also minor versions) and sklearn, joblib library versions.

    There are alternative descriptive output formats for machine learning models, such as developed by the Data Mining Group, such as the predictive models markup language (PMML) and the portable format for analytics (PFA). Of the two, PMML is much better supported.

    So you have the option of saving a model from scikit-learn into PMML (for example using sklearn2pmml), and then deploy and run it in java, spark, or hive using jpmml (of course you have more choices).

提交回复
热议问题