513 views
3 3 votes

Consider the following data:

\[
\begin{array}{|l|l|}
\hline
g(x) & y \\
\hline
+30 & +1 \\
\hline
-20 & -1 \\
\hline
-1 & -1 \\
\hline
+1 & +1 \\
\hline
\end{array}
\]

Which of the following will be true?

  1. The values of $0-1$ loss and squared loss will be the same, which will be equal to zero.
     
  2. The values of 0-1 loss and squared loss will be the same, which will be equal to some large positive quantity.
     
  3. The value of 0-1 loss will be zero, while the value of squared loss will be some large positive quantity.
     
  4. The value of squared loss will be zero, while the value of $0-1$ loss will be some large positive quantity.

1 Answer

0 0 votes

\[
\begin{array}{|l|l|l|l|l|}
\hline
g(x) & y & \operatorname{sign}(g(x)) & \text{0-1 loss} & \text{Squared loss } [g(x)-y]^2 \\
\hline
+30 & +1 & +1 & 0 & 29^2 \\
\hline
-20 & -1 & -1 & 0 & 19^2 \\
\hline
-1 & -1 & -1 & 0 & 0 \\
\hline
+1 & +1 & +1 & 0 & 0 \\
\hline
\end{array}
\]

The value of $0-1$ loss is zero, while the value of squared loss is a large positive quantity. 

Hence, option (C) is correct.

edited by
Answer:
Position:
Show:

Related questions

3 3 votes
3 3 answers
608
608 views
GO Classes asked Oct 10, 2025
608 views
We have trained four models in the same dataset with different hyperparameters. In the following table, we have recorded the training and testing errors for each of the m...
1 1 vote
2 2 answers
432
432 views
GO Classes asked Oct 10, 2025
432 views
We have trained four models in the same dataset with different hyperparameters. In the following table, we have recorded the training and testing errors for each of the m...
2 2 votes
1 1 answer
389
389 views
GO Classes asked Oct 10, 2025
389 views
Is the following statement true or false?If $i^{\text {th }}$ point in soft-margin SVM pays a non-zero bribe ( $\xi_i>0$ ), then the value of $\alpha_i$ is $C$.TRUE FALSE...
2 2 votes
1 1 answer
363
363 views
GO Classes asked Oct 10, 2025
363 views
Is the following statement true or false?If a point lies between the supporting hyperplanes in the soft-margin SVM problem, it always pays a positive bribe and plays a ro...