sklearn metrics for logistic regression code example Example: LogisticRegression sklearn from sklearn.linear_model import LogisticRegression