AzureML:"Train Matchbox Recommender"不起作用并且不描述错误 [英] AzureML: "Train Matchbox Recommender" is not working and does not descibe the error

查看:68
本文介绍了AzureML:"Train Matchbox Recommender"不起作用并且不描述错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用该模块创建自己的实验,但未能使其正常工作.这是我得到的例外:

I tried to create my own experiment using the module, but failed to make it work. here is the exception i got:

错误0018:用户项目评分三元组的训练数据集包含无效数据.[关键] {"InputParameters":{"DataTable":[{"Rows":14,"Columns":3,"estimatedSize":12668928,"ColumnTypes":{"System.String":1,"System.Int32:1," System.Double:1}," IsComplete:true,"统计信息:{" 0:[10,0]," 1:[5422.0,5999.0,873.0,6616.0,1758.0582820478173,7.0,0.0],"2":[1.0,1.0,1.0,1.0,0.0,1.0,0.0]}},{行":2338,列":3,估计大小":1404928,列类型":{"System.String":1,"System.Int32":1,"System.Double":1},"IsComplete":true,"Statistics":{"0":[2338,0],"1":[7.5367835757057318,3.0,0.0,704.0,17.738259318519511,64.0,0.0],"2":[3.3737234816082085,1.5,0.0,352.0,8.3956874404883841,122.0,0.0]}},{行":2532,列":22,"estimatedSize":4648960,"ColumnTypes":{"System.Int32":10,"System.String":5,"System.Double":6,"System.Boolean":1},"IsComplete":true,统计信息":{"0":[4575.7263033175175359,5326.5,539.0,6871.0,1987.9561375024909,2532.0,0.0],"1":[4575.7263033175359,5326.5,539.0,6871.0,1987.9561375024909,2532.0,0.0],"2":[613.0,613.0,613.0,613.0,0.0,1.0,0.0],"3":[0,2532],"4":[0,2532],"5":[4575.7263033175359,5326.5,539.0,6871.0,1987.9561375024909,2532.0,0.0],"6":[23.647231437598673,19.99,1.99,149.99,17.237723488320938,90.0,0.0],"7":[0.043827014218009476,0.0,0.0,45.99,1.3460680431173562,3.0,0.0],"8":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"9":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"10":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"11":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"12":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"13":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"14":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"15":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"16":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"17":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"18":[2524,0],"19":[242,18],"20":[1,0],"21":[2524,0]}}],通用:{" traitCount:10," iterationCount:5," batchCount:4}}," OutputParameters:[]," ModuleType:" Microsoft.Analytics.Modules.MatchboxRecommender.Dll," ModuleVersion:"Version = 6.0.0.0","AdditionalModuleInfo":"Microsoft.Analytics.Modules.MatchboxRecommender.Dll,Version = 6.0.0.0,Culture = neutral,PublicKeyToken = 69c3241e6f0468ca; Microsoft.Analytics.Modules.MatchboxRecommender.Dll.MatchboxRecommender; Train," Errors:" Microsoft.Analytics.Exceptions.ErrorMapping + ModuleException:错误0018:用户项目评分三元组的训练数据集包含无效数据.\ r \ n在Microsoft.Analytics.Modules.MatchboxRecommender.DllMicrosoft.Analytics.Modules中的d:\ _ Bld \ 8833 \ 7669 \ Sources \ Product \ Source \ Modules \ MatchboxRecommender.Dll \ Utilities.cs:line 179 \ r \ n中的.MatchboxRecommender.Dll.MatchboxRecommender.TrainImpl(DataTable userItemRatingTriples,DataTable userFeatures,DataTable itemFeatures,Int32 traitCount,Int32迭代计数,Int32 batchCount)在d:\ _ Bld \ 8833 \ 7669 \ Sources \ Product \ Source \ Modules \ MatchboxRecommender.MatchboxRecommender.cs:line 62,"警告:[],"持续时间:" 00:00:00.6722068}运行时间为00:00:01.1250071且退出代码为-2之后,模块完成模块由于负退出代码-2

Error 0018: Training dataset of user-item-rating triples contains invalid data. [Critical] {"InputParameters":{"DataTable":[{"Rows":14,"Columns":3,"estimatedSize":12668928,"ColumnTypes":{"System.String":1,"System.Int32":1,"System.Double":1},"IsComplete":true,"Statistics":{"0":[10,0],"1":[5422.0,5999.0,873.0,6616.0,1758.0582820478173,7.0,0.0],"2":[1.0,1.0,1.0,1.0,0.0,1.0,0.0]}},{"Rows":2338,"Columns":3,"estimatedSize":1404928,"ColumnTypes":{"System.String":1,"System.Int32":1,"System.Double":1},"IsComplete":true,"Statistics":{"0":[2338,0],"1":[7.5367835757057318,3.0,0.0,704.0,17.738259318519511,64.0,0.0],"2":[3.3737234816082085,1.5,0.0,352.0,8.3956874404883841,122.0,0.0]}},{"Rows":2532,"Columns":22,"estimatedSize":4648960,"ColumnTypes":{"System.Int32":10,"System.String":5,"System.Double":6,"System.Boolean":1},"IsComplete":true,"Statistics":{"0":[4575.7263033175359,5326.5,539.0,6871.0,1987.9561375024909,2532.0,0.0],"1":[4575.7263033175359,5326.5,539.0,6871.0,1987.9561375024909,2532.0,0.0],"2":[613.0,613.0,613.0,613.0,0.0,1.0,0.0],"3":[0,2532],"4":[0,2532],"5":[4575.7263033175359,5326.5,539.0,6871.0,1987.9561375024909,2532.0,0.0],"6":[23.647231437598673,19.99,1.99,149.99,17.237723488320938,90.0,0.0],"7":[0.043827014218009476,0.0,0.0,45.99,1.3460680431173562,3.0,0.0],"8":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"9":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"10":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"11":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"12":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"13":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"14":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"15":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"16":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"17":[0.0,0.0,0.0,0.0,0.0,1.0,0.0],"18":[2524,0],"19":[242,18],"20":[1,0],"21":[2524,0]}}],"Generic":{"traitCount":10,"iterationCount":5,"batchCount":4}},"OutputParameters":[],"ModuleType":"Microsoft.Analytics.Modules.MatchboxRecommender.Dll","ModuleVersion":" Version=6.0.0.0","AdditionalModuleInfo":"Microsoft.Analytics.Modules.MatchboxRecommender.Dll, Version=6.0.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca;Microsoft.Analytics.Modules.MatchboxRecommender.Dll.MatchboxRecommender;Train","Errors":"Microsoft.Analytics.Exceptions.ErrorMapping+ModuleException: Error 0018: Training dataset of user-item-rating triples contains invalid data.\r\n at Microsoft.Analytics.Modules.MatchboxRecommender.Dll.Utilities.UpdateRatingMetadata(DataTable dataset, String datasetName) in d:\_Bld\8833\7669\Sources\Product\Source\Modules\MatchboxRecommender.Dll\Utilities.cs:line 179\r\n at Microsoft.Analytics.Modules.MatchboxRecommender.Dll.MatchboxRecommender.TrainImpl(DataTable userItemRatingTriples, DataTable userFeatures, DataTable itemFeatures, Int32 traitCount, Int32 iterationCount, Int32 batchCount) in d:\_Bld\8833\7669\Sources\Product\Source\Modules\MatchboxRecommender.Dll\MatchboxRecommender.cs:line 62","Warnings":[],"Duration":"00:00:00.6722068"} Module finished after a runtime of 00:00:01.1250071 with exit code -2 Module failed due to negative exit code of -2

我已经检查了我设置为输入用户地方评分表的输入数据,按记录记录(不用担心,它只有14条记录),这里是:

i've check the input data i'm setting as input user-place-rating table, record by record (no worries it's only 14 records) here it is:

以下是实验的屏幕截图:

Here is a screenshot of the experiment:

由于错误消息不是很有意义,所以我不知道从哪里开始,所以,如果有人有想法,我将很高兴听到它.

since the error message is not very informative, I don't know where to start, so, if anybody has an idea, I would be happy to hear about it.

更新:我的一个朋友建议添加编辑元数据"模块,以将评级"功能更改为"int"或"float"类型,并将另外两个(placeID和userID)更改为字符串功能.那也没有帮助.

Update: A friend of mine suggested to add "Edit Metadata" module to change the "rating" feature into "int" or "float" types, and the two other(placeID and userID) into string features. that didn't help as well.

推荐答案

火柴盒推荐器要求等级为数字或分类.同样,在训练时,您的评分可能不会全部相同.

The matchbox recommender requires that ratings be numerical or categorical. Also when training, your ratings cannot all be the same.

您需要使用元数据编辑器 https://msdn.microsoft.com/en-us/library/azure/dn905986.aspx 要将等级转换为数字特征,则需要确保使用的等级范围.

You need to use a metadata editor https://msdn.microsoft.com/en-us/library/azure/dn905986.aspx to convert the ratings into numerical features and you need to make sure you are using a range of ratings.

那么这应该工作!

这篇关于AzureML:"Train Matchbox Recommender"不起作用并且不描述错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆