Programming, Data Science, Machine Learning, Python.
second term is responsible for penalizing misclassified points, the more distant the point is to the correct zone, the bigger the penalization. Now we have conditions to perform the gradient descent and find the optimal values for w and b. Taking the partial derivatives with respect to the weight