how to perform logistic regression in [python code example
Example 1: importing logistic regression
sklearn.linear_model.LogisticRegression
Example 2: logistic regression algorithm in python
print("Accuracy:",metrics.accuracy_score(y_test, y_pred))
print("Precision:",metrics.precision_score(y_test, y_pred))
print("Recall:",metrics.recall_score(y_test, y_pred))