标签:
Loss function is used to measure the degree of fit. So for machine learning a few elements are:
Among all linear methods y=f(θTx)y=f(θTx), we need to first determine the form of ff, and then finding θθ by formulating it to maximizing likelihood or minimizing loss. This is straightforward.
For classification, it‘s easy to see that if we classify correctly we have y⋅f=y⋅θTx>0y⋅f=y⋅θTx>0, and y⋅f=y⋅θTx<0y⋅f=y⋅θTx<0 if incorrectly. Then we formulate following loss functions:
For regression:
Fortunately, hinge loss, logistic loss and square loss are all convex functions. Convexity ensures global minimum and it‘s computationally appleaing.
标签:
原文地址:http://www.cnblogs.com/zhizhan/p/5901613.html