add logistic regression and SGD