您好,我正在关注以下链接。 https://cloud.google.com/ml-engine/docs/scikit/using-pipelines-for-preprocessing
我跳过了本地测试部分,直接进行了部署。
当我尝试最后一步(即获取预测)时,我总是会遇到相同的错误,该错误表明指向指定输入文件的路径不正确。这些是我遇到的一些错误:
ERROR: (gcloud.ai-platform.predict) Unable to read file [C:/Users/Rayyan/Desktop/input.json.txt]: [Errno 2] No such file or directory: 'C:/Users/Rayyan/Desktop/input.json.txt'
或
ERROR: (gcloud.ai-platform.predict) Unable to read file [C:\Users\Rayyan\Desktop\input.json.txt]: [Errno 2] No such file or directory: 'C:\\Users\\Rayyan\\Desktop\\input.json.txt'
我尝试了各种斜杠等变化,甚至尝试将其移动到gcp存储桶中。 INPUT_FILE =“ C:\ Users \ Rayyan \ Desktop \ input.json.txt”
按照教程中的指示,json文件在新行上有一个新列表。 其余参数如下:
MODEL_NAME =“ testfirst”
VERSION_NAME =“ tfirst”