Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 24, 2021 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/4366735f5fd16f097c797d1cd9de5ab8 to your computer and use it in GitHub Desktop.
Save amankharwal/4366735f5fd16f097c797d1cd9de5ab8 to your computer and use it in GitHub Desktop.
from sklearn.linear_model import LogisticRegression
Lr=LogisticRegression(C=0.01,random_state=0)
Lr.fit(x_train,y_train)
y_pred=Lr.predict(x_test)
print(y_pred)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment