-
-
Save Blaizzy/e8e166fd7e68a5d487ebd60aa8abc026 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| from sklearn.linear_model import LogisticRegression | |
| #Creating a classifier | |
| clf = LogisticRegression() | |
| # Traning a testing Accuracy | |
| model = clf.fit(X_train, y_train.values.ravel()) | |
| acc = clf.score(X_train, y_train.values.ravel()) | |
| print('Model Accuracy: ', round(acc*100,3),'%') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment