List index out of range error in VQPCA
VQPCA
gives IndexError: list index out of range
on some datasets or on some random initializations.
This might be especially reproducible when n_components
gets closer to the original data dimensionality.
My suspicion is that it happens when one of the clusters becomes rank deficient.