在 Recommendations-Portal 中上传使用文件失败

Uploading Usage file in Recommendations-Portal fails

我第一次尝试建议 API,在我的 URL 中:https://recommendations-portal.azurewebsites.net/...我能够成功上传目录的 xlsx 文件。

然而,对于 Usage 文件,我尝试了 xlsx 和 csv 文件,但我总是得到这个错误的变体:

{"error":{"code":"BadArgument","message":"(EXT-0108) Passed argument is 
invalid.","innerError":{"code":"EXT-0039","message":"'5,135' errors detected 
in the first '5,135' lines of the file"}}} 

我的数据样本:
2 1 2014-02-28T09:46:16 购买
2 1 2014-03-03T01:35:54 购买
5 1 2014-03-12T11:08:29 购买
7 1 2014-03-12T12:58:58 购买
6 1 2014-03-12T13:14:45 购买
6 1 2014-03-12T13:23:07 购买
6 1 2014-03-12T13:25:36 购买

建议解决方案不应使用目录的 XLSX 文件,只能使用符合 https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-recommendations-collecting-data

中所述格式的逗号分隔值 (CSV) 文件

请确保创建新模型,并以预期格式上传数据。类似于:

AAA04294,Office Language Pack Online DwnLd,Office

AAA04303,Minecraft Download Game,Games

C9F00168,Kiruna Flip Cover,Accessories

然后以预期的格式上传您的使用文件。类似于:

2,1,2014/03/03T01:35:54,Purchase

5,1,2014/03/12T11:08:29,Purchase

7,1,2014/03/12T12:58:58,Purchase

请确保您的使用文件中引用的项目确实在您的目录文件中定义。如果可能,还要确保使用真实的交易数据。

总而言之,请阅读本文档: https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-recommendations-collecting-data

谢谢,

路易斯·卡布雷拉

推荐API项目经理。