私は2つのwekaInstances
クラスを持っています。一方の属性を、もう一方の属性と同じ名前で識別しようとしています。ただし、以下を使用します。
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
任意の洞察をいただければ幸いです。ありがとう!