allow seeding of init methods in vq.kmeans2 #9450
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.cluster
Milestone
The
vq.kmeans2
function has initialization methods (that can be selected by theminit
keyword) that do random number generation without allowing for seeding. See e.g. #9037 (review)It should be possible for the user to pass in a
np.random.RandomState
instance or set a seed, rather than having to rely on setting the global state. Can be done in a similar way as therandom_state
keyword in the stats distributions.The text was updated successfully, but these errors were encountered: