我正在使用 mulan 库进行多标签分类。我正在使用的学习者是 RAkEL 学习者。我按照木兰的指示: http: //mulan.sourceforge.net/starting.html
我的标签 xml 文件:
<labels xmlns="http://mulan.sourceforge.net/labels">
<label name="1"/>
<label name="2"/>
<label name="3"/>
<label name="4"/>
<label name="5"/>
</labels>
我的训练数据文件:
@relation predict_label
@attribute 12345 numeric
@attribute A numeric
@attribute B numeric
@attribute C numeric
@attribute D numeric
@attribute E numeric
@attribute 1 {0, 1}
@attribute 2 {0, 1}
@attribute 3 {0, 1}
@attribute 4 {0, 1}
@attribute 5 {0, 1}
@data
2,3,2,2,2,2,1,0,0,0,0
2,2,3,2,2,2,0,1,0,0,0
2,2,2,3,2,2,0,0,1,0,0
2,2,2,2,3,2,0,0,0,1,0
2,2,2,2,2,3,0,0,0,0,1
我的测试数据文件:
@relation catalog_ml
@attribute 12345 numeric
@attribute A numeric
@attribute B numeric
@attribute C numeric
@attribute D numeric
@attribute E numeric
@attribute 1 {0, 1}
@attribute 2 {0, 1}
@attribute 3 {0, 1}
@attribute 4 {0, 1}
@attribute 5 {0, 1}
@data
2,2,2,2,2,3,0,0,0,0,0
我在执行预测后得到的结果:
Bipartion: [false, false, false, false, false] Confidences: [0.0, 0.0, 0.0, 0.0, 0.0] Ranking: [5, 4, 3, 2, 1]Predicted values: null
我的问题是:
1. 有人可以帮我验证我做错了什么吗?
2.据我了解,排名[5,4,3,2,1]是xml标签文件中标签的位置。我的理解正确吗?为什么排名顺序不是从 1 到 5 ...?
3. 预测值是否为空,因为这是一个多标签分类测试?否则哪个学习器不会将预测值返回为空?
非常感谢。任何建议或意见都非常受欢迎。