The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
how does class weights Parameter in LibSVM work?
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...
Tagged:
0
Answers
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.