_{i=1}^n\max(0,1-y_iw^T \textbf{x}_i) + ||w||_2^2$$`

![:scale 45%](images/binary_loss.png)
]
???

So this is the main difference between logistic regression and linear SVMs:
Does it penalize misclassifications according to the green line, or according to the blue line?
In practice it doesn't make a big difference.

---


# SVM or LogReg?

.center[
![:scale 80%](images/svm_or_lr.png)
]

- Need compact model or believe solution is sparse? Use L1

???
So which one of them should you use? If you need probabili