【发布时间】:2013-02-13 07:57:28
【问题描述】:
我有两个 weka Instances 课程。我试图识别一个与另一个属性同名的属性。但是,使用:
if (testing.attribute(i).name() == training.attribute(j).name())
为每个属性引发False。这是每个的 arff 文件。如您所见,两者都包含attr1、attr2 和attr3。
@relation SampleTrain3Attributes
@attribute attr1 numeric
@attribute attr2 {a,b,c}
@attribute attr3 numeric
@data
1,a,2
3,b,4
5,c,6
7,a,8
@relation SampleTest5Attributes
@attribute attr1 numeric
@attribute attr2 {a,b,c}
@attribute attr3 numeric
@attribute attr4 {d,e,f}
@attribute attr5 numeric
@data
1,a,2,d,3
3,b,4,f,4
5,c,6,e,8
7,a,8,d,9
任何见解将不胜感激。谢谢!
【问题讨论】:
标签: machine-learning weka