无法将经过训练的模型上传到AI平台

问题描述 投票:0回答:1

我已经训练了一个随机森林分类器,并将该模型作为Joblib文件存储在Google存储器中。使用带有此model.joblib文件的scikit-learn框架创建版本时,ai平台给出错误。错误如下-:

Create Version failed. Bad model detected with error: "Failed to load model: Could not load the model: /tmp/model/a0001/model.joblib. 0. (Error code: 0)"

模型为283Mb-完全在允许的大小限制内。

google-cloud-platform scikit-learn random-forest joblib gcp-ai-platform-training
1个回答
0
投票

如您在troubleshooting guide中看到的那样,该错误通常表示错误的库用于导出模型。要更正此问题,请使用正确的库重新导出模型。

[记住,AI平台中的joblib库是通过以下方式导入的:

from sklearn.externals import joblib

您有一个如何导出它的示例here

© www.soinside.com 2019 - 2024. All rights reserved.