Skip to content

Instantly share code, notes, and snippets.

@gonzaloruizdevilla
Created October 16, 2019 19:04
Show Gist options
  • Save gonzaloruizdevilla/f51dbe98eb74bafe8f576ad4e5712a87 to your computer and use it in GitHub Desktop.
Save gonzaloruizdevilla/f51dbe98eb74bafe8f576ad4e5712a87 to your computer and use it in GitHub Desktop.
y_pred = knn.predict(X_test)
print("Test set predictions:\n {}".format(y_pred))
print("Test set score (np.mean): {:.2f}".format(np.mean(y_pred == y_test)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment