我使用木蘭庫做多標籤分類。 我使用的學習者是RAkEL學習者。我跟着木蘭的指令: http://mulan.sourceforge.net/starting.html我有0%的正確預測,也許是錯誤的設置?
我的標籤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.預測值爲空,因爲這是一個多標籤分類測試嗎?否則哪個學習者不會將預測值返回爲null?
非常感謝。任何建議或意見都比歡迎。