LogisticRegression model python code example
Example 1: LogisticRegression sklearn
from sklearn.linear_model import 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))