🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

how does class weights Parameter in LibSVM work?

User: "Fred12"
New Altair Community Member
Updated by Jocelyn

hi,

 

how do the parameter setting for class weights in LibSVM work? e.g. if I have a class that is 2x less or 3xless than my main class, can I simply weight them 2x, or 3x respectively?

is it simply that what is meant?? or how does it work? I remember that in the MetaCost operator, the meaning of the weights is somewhat different if I'm correct...

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Thomas_Ott"
    New Altair Community Member

    Hi,

     

    Yes the Class Weights parameter allows you to manually adjust the class weights. You could set "Yes" = 1 and "No" = 2. The Metacost operator, if memory serves, uses a cost matrix where you can adjust the penalty of mis-classification. Like Predicted True vs Acutal True = 1 and Predicted True vs Actual False = 4.