create online logistic regression