Skip to content

Instantly share code, notes, and snippets.

@lazuxd
Created February 7, 2020 17:59
Show Gist options
  • Save lazuxd/c76bcf9417498bc484a64356f00334e9 to your computer and use it in GitHub Desktop.
Save lazuxd/c76bcf9417498bc484a64356f00334e9 to your computer and use it in GitHub Desktop.
Building a Sentiment Classifier using Scikit-Learn
system("mkdir 'classifiers'")
sgd_classifier = random_search_cv.best_estimator_
dump(random_search_cv.best_estimator_, 'classifiers/sgd_classifier.joblib')
# sgd_classifier = load('classifiers/sgd_classifier.joblib')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment