Skip to content

Instantly share code, notes, and snippets.

@gaganmanku96
Created May 19, 2019 10:21
Show Gist options
  • Save gaganmanku96/714301df0cb6302149d787d981711c07 to your computer and use it in GitHub Desktop.
Save gaganmanku96/714301df0cb6302149d787d981711c07 to your computer and use it in GitHub Desktop.
classifier = LogisticRegression(solver='lbfgs',C=0.5)
classifier.fit(train_arrays,train_labels)
pred = classifier.predict(test_arrays)
'''
You can check the accuracy of model using sklearn's confusion matrix or accuracy_score function.
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment