无法触发推荐构建

Unable to trigger recommendation build

我正在发送以下请求(根据文档 https://westus.dev.cognitive.microsoft.com/docs/services/Recommendations.V4.0/operations/56f30d77eda5650db055a3d0

{  
   "description":"",
   "buildType":"Recommendation",
   "buildParameters":{  
      "recommendation":{  
         "numberOfModelIterations":10,
         "numberOfModelDimensions":20,
         "itemCutOffLowerBound":1,
         "itemCutOffUpperBound":10,
         "userCutOffLowerBound":1,
         "userCutOffUpperBound":10,
         "enableModelingInsights":false,
         "splitterStrategy":"LastEventSplitter",
         "useFeaturesInModel":false,
         "allowColdItemPlacement":false,
         "enableFeatureCorrelation":false,
         "enableU2I":false,
         "randomSplitterParameters":{  
            "testPercent":10,
            "randomSeed":0
         }
      },
      "fbt":{  
         "similarityFunction":"",
         "enableModelingInsights":false,
         "splitterStrategy":"",
         "randomSplitterParameters":{  

         }
      }
   }
}

并不断得到回应:

{  
   "error":{  
      "code":"InternalServerError",
      "message":"(EXT-0110) The server encountered an internal error.",
      "innerError":{  
         "code":"c83f18d5-06ff-4e34-b0f9-b0c680b4c66e",
         "message":null
      }
   }
}

谷歌搜索没有多大帮助。

更新:

已将 enableModelingInsights 更改为 false。问题仍然存在。

如果我再次触发,我会收到"Cannot start new build of type 'Recommendation' when another build '1560455' of same type is running for model '264ea280-76dd-4d17-892e-2ca2bde214c3'"。看起来构建已创建,但不知何故未触发。

我想我知道这个问题了。现在将 enableModelingInsights 关闭为 false。

除非您有足够的数据用于建模,并指定适当的拆分策略,否则建模见解不会起作用。

https://azure.microsoft.com/en-us/documentation/articles/cognitive-services-recommendations-buildtypes/ 上的更多建模见解)

我确实注意到 API 文档中显示的默认值导致了这种混淆——所以我会与团队讨论以更正该问题。

谢谢, 路易斯·卡布雷拉

当您指定 "buildType":"Recommendation" 时,您指定了您想要推荐构建(可用的是 recommendation/fbt/rank)

在这种情况下,您需要从整个列表中删除 FBT 参数。

当您确实想要使用 FBT 时,您将需要更改构建类型、远程推荐构建参数并填写 similarityFunction 的值并更新 splitter 的值(如果启用建模见解设置为 true,否则将其删除)。

我没有改变任何东西。但现在它起作用了。看起来是内部问题。