【发布时间】:2018-11-21 10:31:35
【问题描述】:
我正在尝试在谷歌云中训练机器学习模型 usinf tensorflow 库。创建存储桶后,我可以在云中训练模型。当我尝试使用现有模型进行预测时,我遇到了这个问题。代码和数据可在以下 Github 目录中找到。 https://github.com/terminator172/game-price-predictions
云上的tensorflow版本是1.8,我系统上的tensorflow版本也是1.8
我尝试通过提供以下输入来进行预测 "gcloud ml-engine predict --model=earnings --version=v8 --json-instances=sample_input_prescaled.json"
出现以下错误 "{ "error": "预测失败:模型执行期间出错:AbortionError(code=StatusCode.FAILED_PRECONDITION, details=\"尝试使用未初始化的值 output/biases4\n\t [[Node: output/biases4/read = IdentityT=DT_FLOAT , _output_shapes=[[1]], _device=\"/job:localhost/replica:0/task:0/device:CPU:0\"]]\")" }"
【问题讨论】:
标签: python tensorflow machine-learning google-cloud-ml