从 Python scikit-learn 导出 PFA 模型 [英] PFA model export from Python scikit-learn

查看:58
本文介绍了从 Python scikit-learn 导出 PFA 模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了一些 PFA 文档并了解 PFA 模型可以导入并用于生产部署(我在 GitHub 上遵循了一些示例).但是,我不清楚 PFA 模型是如何导出/生成的.是否可以将 Python scikit-learn 模型导出为 PFA 模型?是否可以将 Python 内置的 Tensorflow 模型导出为 PFA 模型?您能否提供有关出口流程的指南?

I have read through some of the PFA documentation and understand that PFA model can be imported and used in Production deployments (I have followed along a few examples on GitHub). However, it is not clear to me how the PFA model is exported/generated. Is it possible to export Python scikit-learn model as a PFA model? Is it possible to export Tensorflow model built in Python as a PFA model? Would you please be able to provide guidelines on the export process?

推荐答案

可以使用 SKompiler 库:

from skompiler import skompile
skompile(model.predict).to('pfa/yaml')

这篇关于从 Python scikit-learn 导出 PFA 模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆