Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/heart disease.py Secret

Created Nov 10, 2020
Embed
What would you like to do?
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