Generate random subsample of fixed size of numpy array
I have searched for this and couldn't find it. Imagine I have a numpy array of size N. Now I want to generate it's subsample of size M. Basically I want M randomly chosen elements from this array. N >= M. How can I do it ?
Aucun commentaire:
Enregistrer un commentaire