Skip to content

Instantly share code, notes, and snippets.

@dradecic
Created September 1, 2019 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dradecic/94305fc88c19976aa64ffec3716d4bba to your computer and use it in GitHub Desktop.
Save dradecic/94305fc88c19976aa64ffec3716d4bba to your computer and use it in GitHub Desktop.
rfecv_plotting_accuracy
plt.figure(figsize=(16, 9))
plt.title('Recursive Feature Elimination with Cross-Validation', fontsize=18, fontweight='bold', pad=20)
plt.xlabel('Number of features selected', fontsize=14, labelpad=20)
plt.ylabel('% Correct Classification', fontsize=14, labelpad=20)
plt.plot(range(1, len(rfecv.grid_scores_) + 1), rfecv.grid_scores_, color='#303F9F', linewidth=3)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment