{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n# Recursive feature elimination\n\nThis example demonstrates how Recursive Feature Elimination\n(:class:`~sklearn.feature_selection.RFE`) can be used to determine the\nimportance of individual pixels for classifying handwritten digits.\n:class:`~sklearn.feature_selection.RFE` recursively removes the least\nsignificant features, assigning ranks based on their importance, where higher\n`ranking_` values denote lower importance. The ranking is visualized using both\nshades of blue and pixel annotations for clarity. As expected, pixels positioned\nat the center of the image tend to be more predictive than those near the edges.\n\n
See also `sphx_glr_auto_examples_feature_selection_plot_rfe_with_cross_validation.py`