Google 预测 API - storageDataLocation?

Google Prediction API - storageDataLocation?

关于如何指定 Google 预测桶的任何经验。我继续并通过单击创建存储桶按钮在存储 --> 云存储 --> 浏览器中创建了一个存储桶。我给这个桶起了一个独特的名字,比如 "UNIQUE001"。我根据他们的规范上传了数据,一个 CSV 文件,引用了字符串。我想训练模型,所以想 运行 预测 API v1.6 > prediction.trainedmodels.insert。这是我的 post 请求

POST https://www.googleapis.com/prediction/v1.6/projects/XXXXXXXXX/trainedmodels?fields=created%2Cid%2Ckind%2CmodelInfo%2CmodelType%2CselfLink%2CstorageDataLocation%2CstoragePMMLLocation%2CstoragePMMLModelLocation%2CtrainingComplete%2CtrainingStatus

    {
     "id": "CodePrediction",
     "storageDataLocation": "dataset.csv",
     "modelType": "CLASSIFICATION"
    }

我收到错误响应 "Training data not found" 400 好

显示headers-

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Training data file not found."
   }
  ],
  "code": 400,
  "message": "Training data file not found."
 }
}

不确定,我想如何指定 storageDataLocation。我试过了 1) gs://UNIQUE001 2) ProjectNumber/UNIQUE001

这里是我给ProjectNumber/bucketName,

时的错误
Request
POST https://www.googleapis.com/prediction/v1.6/projects/xxxx/trainedmodels?fields=created%2Cid%2Ckind%2CmodelInfo%2CmodelType%2CselfLink%2CstorageDataLocation%2CstoragePMMLLocation%2CstoragePMMLModelLocation%2CtrainingComplete%2CtrainingStatus

{
 "id": "CodePrediction",
 "storageDataLocation": "xxxxxxx/UNIQUE001",
 "modelType": "CLASSIFICATION"
}

错误

400 行

显示headers-

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Training data file is empty.",
    "locationType": "other",
    "location": "id"
   }
  ],
  "code": 400,
  "message": "Training data file is empty."
 }
}

数据集不为空。它有百万行

storageDataLocation 值为bucketname/filename