训练和测试集在weka中不兼容吗? [英] Train and test set are not compatible error in weka?

查看:582
本文介绍了训练和测试集在weka中不兼容吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用新的数据集测试我的模型.我已经完成了与建立模型相同的预处理步骤.我已经比较了两个文件,但是没有问题.我具有相同顺序,相同属性名称和数据类型的所有属性(训练与测试数据集).但我仍然无法解决问题.训练和测试这两个文件似乎相似,但是Weka Explorer给我错误,说训练和测试集不兼容.如何解决这个错误?有什么办法可以将test.arff文件格式设置为train.arff?请有人帮我.

I'm trying to test my model with new dataset. I have done the same preprocessing step as i have done for building my model. I have compared two files but there is no issues. I have all the attributes(train vs test dataset) in same order, same attribute names and data types. But still i'm not able to resolve the issue. Both of the files train and test seems to be similar but the weka explorer is giving me error saying Train and test set are not compatible. How to resolve this error? Is there any way to make test.arff file format as train.arff? Please somebody help me.

推荐答案

与我在问题陈述后留下的评论相同:

The same with the comment that I left after problem statement:

所有这三个属性都是标称属性,后跟所有用'{}'引用的可能值.我的猜测之一是可能的值不相同.例如,对于RESOURCE属性,在测试文件中没有199,而在训练文件中.

All the three attributes are nominal attributes followed by all the possible values quoted by '{}'. One of my guess is that the possible values are not the same. For example, for RESOURCE attribute there is no 199 in test file, while it is in training-file.

这篇关于训练和测试集在weka中不兼容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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