Created
September 26, 2021 21:03
-
-
Save shayaf84/301c3fea89a2bf823c6bf880dcbabcbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Logistic Regression Classifier | |
logReg = LogisticRegression() | |
logReg.fit(X_train, y_train) | |
log_y_pred = logReg.predict(X_test) | |
log_precision = precision_score(y_test, log_y_pred) | |
log_recall = recall_score(y_test, log_y_pred) | |
log_f1 = f1_score(y_test, log_y_pred) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment