This module provides some code to perform bootstrap of Ward’s hierarchical clustering This is useful to statistically validate clustering results. theory see:
Author : Bertrand Thirion, 2008
basic demo for the ward_msb procedure in that case the dominant split with 2 clusters should have dominant p-val
Parameters : | n,d : the dimensions of the dataset niter : the number of bootrstraps |
---|
multi-scale bootstrap procedure
Parameters : | X array of shape (n,p) where :
niter=1000 :
|
---|---|
Returns : | t the resulting tree clustering :
cpval: array of shape (n) : the corrected p-value of the clusters upval: array of shape (n) : the uncorrected p-value of the clusters |