How do we interpret the cost matrix in WEKA? If I have 2 classes for forecasting (class 0 and class 1) and you want to punish classfication of class 0 as another class (say, double fine), what exactly is the matrix format?
It:
0 10 20 0
or that
0 20 10 0
The source of confusion is the following two links:
1) JavaDoc for Weka CostMatrix says:
The element at position i, j in the matrix is ββthe penalty for classifying an instance of class j as class i.
2) However, the answer in this post seems to indicate a different one.
http://weka.8497.n7.nabble.com/cost-matrix-td5821.html
Given the first cost matrix, the message reads: "Marking up an instance of class 0 carries a cost of 10. Sorting an instance of class 1 is twice as expensive.
Thanks.
weka
user2549371
source share