I am trying to assign classifications but I'm running into some problems. The normal classification method takes the majority of the votes, but I want to be a bit more strict. Lets say I've got the following matrix:
c1 c2 c3
x1 0.09 0.7 0.21
x2 0.34 0.33 0.33
If I take the majority of the votes, the classification will be as follows:
class
x1 c2
x2 c1
But I want to set the threshold to eg 0.40 votes, so that I would get these classifications:
class
x1 c2
x2 unassigned
I know how to get the max in a row and how to get the column name that holds the max in that row (from this issue, but it doesn't solve mine), but for some reason I can't seem to query the max to be atleast 0.40. Any help would be appreciated :)