how to match attributes order of two instances in weka

£可爱£侵袭症+ 提交于 2019-12-25 02:12:32

问题


i have two Instances from StringToWordVector filter' output in this format:

instances1

a b c 
1 3 2 
5 6 7


instances2

b c a
8 9 1
5 7 8

i want to match these attribute and make a merged instances in this format :

a b c
1 2 3
5 6 7 
1 8 9
8 5 7

回答1:


You can make use of the InputMappedClassifier. If you keep the original doc collection you have two other options described here.



来源:https://stackoverflow.com/questions/21067439/how-to-match-attributes-order-of-two-instances-in-weka

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!