.. _example_neighbors_plot_digits_kde_sampling.py: ========================= Kernel Density Estimation ========================= This example shows how kernel density estimation (KDE), a powerful non-parametric density estimation technique, can be used to learn a generative model for a dataset. With this generative model in place, new samples can be drawn. These new samples reflect the underlying model of the data. **Python source code:** :download:`plot_digits_kde_sampling.py ` .. literalinclude:: plot_digits_kde_sampling.py :lines: 12-