0/1 loss
J(θ)=m∑iL0/1(θTx)where
L0/1(f)={1if y⋅f<00if y⋅f>0Hinge loss
J(θ)=max(0,1−y⋅f)Logistic loss
J(θ)=−[m∑i=1y(i)loghθ(x(i))+(1−y(i))log(1−hθ(x(i)))]where hθ(x)=11+exp(−θ⊤x) is the sigmoid activation function.
Cross entropy
J(θ)=−[∑mi=1∑1k=01{y(i)=k}logP(y(i)=k|x(i);θ)] where P(y(i)=k|x(i);θ)=exp(θ(k)⊤x(i))∑Kj=1exp(θ(j)⊤x(i)) is the softmax activation function.