大佬教程收集整理的这篇文章主要介绍了来自标准 JSON 文件的 gcloud ai-platform 预测错误:gcloud 崩溃(AttributeError):'NoneType' 对象没有属性 'framework',大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试对 JsON 文件 records.Json
运行 ML 预测请求。
!gcloud ai-platform preDict --model housing_prices --Json-instances records.Json
我收到以下错误。
Using endpoint [https://ml.GoogleAPIs.com/] ERROR: gcloud crashed (AttributeError): 'nonetype' object has no attribute 'framework'
@H_675_15@导入所有库。
import pandas as pd import tensorflow as tf
@H_675_15@我正在关注 qwiklabs lab“使用 Tensorflow 和 AI 平台预测房价”。所有命令都在使用
tensorflow
框架的 GCP 上的 Jupyter notebook 中。我错过了一些东西。任何帮助表示赞赏。解决方法
我设法解决了这个问题。 :) 感谢 @john-hanley 指点我检查我可能遗漏了什么。
分辨率:
- ssh 进入虚拟机(虽然由 GCP 管理)我更新了 gcloud 组件
$ gcloud components update
- 我的预测命令
!gcloud ai-platform preDict --model housing_prices --json-instances records.json
- 按预期抛出输出。
Using endpoint [https://ml.googleapis.com/] PREDicTIONS [24958.638671875] [19435.654296875]
@H_675_15@大佬总结
以上是大佬教程为你收集整理的来自标准 JSON 文件的 gcloud ai-platform 预测错误:gcloud 崩溃(AttributeError):'NoneType' 对象没有属性 'framework'全部内容,希望文章能够帮你解决来自标准 JSON 文件的 gcloud ai-platform 预测错误:gcloud 崩溃(AttributeError):'NoneType' 对象没有属性 'framework'所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。