Skip to content

Instantly share code, notes, and snippets.

@haydarai
Created February 2, 2017 12:10
Show Gist options
  • Save haydarai/2f92b576fcf39f743c0deaa18b2e96f6 to your computer and use it in GitHub Desktop.
Save haydarai/2f92b576fcf39f743c0deaa18b2e96f6 to your computer and use it in GitHub Desktop.
Check model accuracy that already given best parameter from Grid Search
cv_scores = cross_val_score(dtc, all_inputs, all_classes)
sns.distplot(cv_scores)
plt.title('Average score: {}'.format(np.mean(cv_scores)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment