-
-
Save amankharwal/ea04783d5ada20216822b7de0c183b3f 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
from sklearn.linear_model import LogisticRegression | |
lr_clf = LogisticRegression(solver='liblinear') | |
lr_clf.fit(X_train, y_train) | |
print_score(lr_clf, X_train, y_train, X_test, y_test, train=True) | |
print_score(lr_clf, X_train, y_train, X_test, y_test, train=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment