Open ih4cku opened 8 years ago
Loss function is to measure the quality of model output.
The typical loss function for classification problem is:
Logistic function:
Sigmoid function is a special case of the Logistic function when :
The output range of the sigmoid function is [0, 1].
The first derivative of sigmoid function is:
In the linear classifier: , each row of W is a classifier. Each row of W can corresponds to a template of the category. So, the classifier is doing template matching.