This question already has an answer here:

When reading the Sklearn User Guide, one might see the following statement about Logistic Regression

As an optimization problem, binary class L2 penalized logistic regression minimizes the following cost function:

enter image description here

Similarly, L1 regularized logistic regression solves the following optimization problem

enter image description here

I do not understand what the first part (before the + C) on the first equation means. I understand that w is a vector and wt is the transposition (I think). Why is it multiplicated by 1/2 ?


marked as duplicate by Sycorax, kjetil b halvorsen, mdewey, Community Jan 2 at 21:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.