I am new to Rapid Miner and using SVM Linear in it. My model is as:
I made Training Example set which consist of 3552 examples and just 2 attributes and I am doing nominal to numeric conversion, passing through SVM Linear model and then connecting model output in applying model. This is fine.
In Test Example set, I have 735 examples with 2 attributes and doing nominal to numeric conversion and then applying this converted Example set to Applying Model. At this stage I am getting an error when I run the process, which says that:
我对此进行了很多搜索,但没有找到正确的方向。我将感谢你的帮助。
The Nominal to Numeric
运算符将创建新属性,其名称将从输入属性的值派生。发生这种情况时dummy encoding
用于coding type
范围。如果与训练数据相比,测试数据包含不同的值,则生成的属性将会不同。
要确认这是问题所在,请在Nominal to Numeric
运算符并检查每个示例集的属性。
您可以通过将参数设置为来更改运算符的工作方式unique integers
但这可能不适合您要解决的问题。
解决该问题的一种可能方法是将两个数据集合并然后再次拆分。即使数据可能没有值的示例,这也会为每个标称属性创建允许的级别。然后每个分割都可以与Nominal to Numeric
运算符,它应该创建所有必需的属性。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)