logistic regression and start of generative classifier