λR(W)
In assignment 1, function svm_loss_naive, there is a 1/2 term before the regularization loss. Where does this come from?
loss += 0.5 reg np.sum(W * W)
λR(W)
In assignment 1, function svm_loss_naive, there is a 1/2 term before the regularization loss. Where does this come from?
loss += 0.5 reg np.sum(W * W)