Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why the sign of predicted labels and decision values are sometimes reversed?

0
Posted

Why the sign of predicted labels and decision values are sometimes reversed?

0

Nothing is wrong. Very likely you have two labels +1/-1 and the first instance in your data has -1. Think about the case of labels +5/+10. Since SVM needs to use +1/-1, internally we map +5/+10 to +1/-1 according to which label appears first. Hence a positive decision value implies that we should predict the “internal” +1, which may not be the +1 in the input file.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123