prediction for logistic regression has been added.