Classifying unlabelled data in Weka

邮差的信 提交于 2019-12-23 20:47:58

问题


I'm currently using various classifiers in Weka.

My testing data is labelled, e.g.:

@relation bmwreponses

@attribute IncomeBracket {0,1,2,3,4,5,6,7}
@attribute FirstPurchase numeric
@attribute LastPurchase numeric
@attribute responded {1,0}

@data
4,200210,200601,0
5,200301,200601,1
6,200411,200601,0
5,199609,200603,0
6,200310,200512,1
...

The last value per row is the class element, i.e. responded.

But if I try unlabelled test data, e.g.:

@relation bmwreponses

@attribute IncomeBracket {0,1,2,3,4,5,6,7}
@attribute FirstPurchase numeric
@attribute LastPurchase numeric
@attribute responded {1,0}

@data
4,200210,200601,?
5,200301,200601,1
6,200411,200601,?
5,199609,200603,0
6,200310,200512,?
...

Weka will carry out the classification but ignore the unlabelled rows. So the test above will only include rows 1 and 3.

Does anyone know how to get around this? Should I have the class attribute declared in the test file or am I missing something?

Mr Morgan.

来源:https://stackoverflow.com/questions/15876121/classifying-unlabelled-data-in-weka

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