Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 谷歌人工智能平台上基于SpaCy的定制预测_Google Cloud Platform_Spacy_Google Ai Platform - Fatal编程技术网

Google cloud platform 谷歌人工智能平台上基于SpaCy的定制预测

Google cloud platform 谷歌人工智能平台上基于SpaCy的定制预测,google-cloud-platform,spacy,google-ai-platform,Google Cloud Platform,Spacy,Google Ai Platform,我试图在Google的AI平台上运行一个自定义预测例程,但当我在我的setup.py中包含spaCy作为必需的包时,总是会出错: gcloud beta ai-platform versions create v1 --model MODEL_NAME --python-version=3.7 --runtime-version=1.15 --package-uris=gs://PATH_TO_PACKAGE --machine-type=mls1-c4-m2 --origin=gs://PAT

我试图在Google的AI平台上运行一个自定义预测例程,但当我在我的
setup.py
中包含spaCy作为必需的包时,总是会出错:

gcloud beta ai-platform versions create v1 --model MODEL_NAME --python-version=3.7 --runtime-version=1.15 --package-uris=gs://PATH_TO_PACKAGE --machine-type=mls1-c4-m2 --origin=gs://PATH_TO_MODEL --prediction-class=basic_predictor.BasicPredictor
Using endpoint [https://ml.googleapis.com/]
Creating version (this might take a few minutes)......failed.
ERROR: (gcloud.beta.ai-platform.versions.create) Create Version failed. Bad model detected with error:  "There was a problem processing the user code: basic_predictor.BasicPredictor cannot be found. Please make sure (1) prediction_class is the fully qualified function name, and (2) it uses the correct package name as provided by the package_uris: ['gs://PATH_TO_PACKAGE'] (Error code: 4)"
只要我将spaCy作为依赖项删除,AI平台就可以创建版本,因此看起来不正确的函数名或包名不可能是问题所在。显然,我的模型依赖于空间,所以不考虑它是不可能的


有人知道如何解决这个问题吗?

这似乎是AI平台预测节点上如何安装依赖项的问题。我复制了这个问题并得到了相同的错误,我还尝试将库打包为tar.gz文件,但以同样的方式失败了


我继续在GCP中报告了这个问题,以便AI平台团队可以调查它,您可以订阅它,以便在有更新时接收通知。

这似乎是AI平台预测节点上如何安装依赖项的问题。我复制了这个问题并得到了相同的错误,我还尝试将库打包为tar.gz文件,但以同样的方式失败了

我继续在GCP中报告了这个问题,这样AI平台团队就可以调查它,你可以订阅它,在有更新时接收通知