Created
January 30, 2022 12:11
-
-
Save sunilkumardash9/2ca03eaaef8b9d0288de27cb6f253e7c 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 | |
from sklearn.metrics import f1_score | |
model = LogisticRegression().fit(X_tr,y_tr) | |
y_pred = model.predict(X_te) | |
print(f1_score(y_te,y_pred)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment