Created
September 1, 2019 16:47
-
-
Save dradecic/94305fc88c19976aa64ffec3716d4bba to your computer and use it in GitHub Desktop.
rfecv_plotting_accuracy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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