Skip to content

Instantly share code, notes, and snippets.

@sunilkumardash9
Created January 30, 2022 12:11
Show Gist options
  • Save sunilkumardash9/2ca03eaaef8b9d0288de27cb6f253e7c to your computer and use it in GitHub Desktop.
Save sunilkumardash9/2ca03eaaef8b9d0288de27cb6f253e7c to your computer and use it in GitHub Desktop.
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