Skip to content

Instantly share code, notes, and snippets.

@jbencina
Created April 12, 2017 00:48
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jbencina/03b2673a6fc27e2717650686b379eeca to your computer and use it in GitHub Desktop.
Save jbencina/03b2673a6fc27e2717650686b379eeca to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@haisi
Copy link

haisi commented May 14, 2018

How would you go about predicting the whole X_train-matrix to measure the performance?
Essentially I want to do something like:

y_pred = predict(X_train, lr_m)
score = accuracy_score(y_test, y_pred)

I've already modified your test_review method to return the category with the highest probability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment