mercredi 13 janvier 2016

Is it possible to shuffle or randomly select entire rows of an array in Python?

I'm working with a multidimensional array where each column contains ordered data and each row is a different sample. I would like to randomly downsample to a specific number of rows, but I don't know how to randomly select an entire row or how to randomly shuffle only the orders of the rows of the array.




Aucun commentaire:

Enregistrer un commentaire