下拉刷新
项目详情
navbar_avatar分享
repo_avatar
HelloGitHub 评分
0 人评分
一个机器学习工具用来打包和发布模型
开源Apache-2.0
认领
收藏
分享
8k
星数
中文
Python
主语言
活跃
231
贡献者
139
Issues
组织
1.4.22
最新版本
871
Forks
Apache-2.0
协议
更多
一个机器学习工具用来打包和发布模型。帮助数据科学家用不到 5 分钟把在 ipython notebook 里的模型发布到生产环境 ```python %%writefile iris_classifier.py from bentoml import BentoService, api, env, artifacts from bentoml.artifact import PickleArtifact from bentoml.handlers import DataframeHandler # You can also import your own python module here and BentoML will automatically # figure out the dependency chain and package all those python modules @artifacts([PickleArtifact('model')]) @env(conda_pip_dependencies=["scikit-learn"]) class IrisClassifier(BentoService): @api(DataframeHandler) def predict(self, df): # arbitrary preprocessing or feature fetching code can be placed here return self.artifacts.model.predict(df) ```
收录于:
第 38 期

评论

评分:
暂无精选评论