from sklearn.linear_model.logistic import LogisticRegression code example Example: LogisticRegression sklearn from sklearn.linear_model import LogisticRegression