I am working currently on a problem where I have to solve either an L2-regularized logistic regression or L2-reg linear SVM problem, where I have an added affine term.
So my problem for example is:
min_ w {C*sum_i max(1-w*x_i*y_i,0) + 0.5*||w||^2_2 + w * v }
where v is a constant vector.
Of course this is a convex problem and can be solved with the usual methods, but I have to solve many large problems of this type, so I would very much like to use a standard library such as liblinear.
My question is, is there a way to transform the data x, the labels y, or the weighing factor C (perhaps into a different C_i for each instance), such that this problem will be equivalent to a standard hinge-loss SVM or logistic regression problem?