sklearn logistic regression apply logistic function only code example Example: importing logistic regression sklearn.linear_model.LogisticRegression