I have a matrix with 138 rows and 70 columns. I would like to generate a bigger matrix from this such that I select n random rows from my matrix, average them out, and put the average in my matrix. I would like to repeat the process 138*m times. What is the most efficient way to do this in python?
Aucun commentaire:
Enregistrer un commentaire