.. _example_connectivity_plot_rest_clustering.py: Ward clustering to learn a brain parcellation from rest fMRI ==================================================================== We use spatially-constrained Ward-clustering to create a set of parcels. These parcels are particularly interesting for creating a 'compressed' representation of the data, replacing the data in the fMRI images by mean on the parcellation. This parcellation may be useful in a supervised learning, see for instance: `A supervised clustering approach for fMRI-based inference of brain states `_, Michel et al, Pattern Recognition 2011. .. rst-class:: sphx-glr-horizontal **Python source code:** :download:`plot_rest_clustering.py ` .. literalinclude:: plot_rest_clustering.py :lines: 16- **Total running time of the example:** 0.00 seconds ( 0 minutes 0.00 seconds)