I have an array with shape (100,505,555,2). I need to choose a sample with lower size in order to calculate correlation between points with size 100. So I need to choose from the second and third dimension of the array. for example get an array of size (100,50,50,2)
I tried to use
np.random.choice or np.random.Generator.choice but not successful.
can you please help??
Aucun commentaire:
Enregistrer un commentaire