Skip to main content
7 events
when toggle format what by license comment
Oct 30, 2018 at 2:51 comment added ZisIsNotZis If you look at the documentation of np.mean above, that don't make sense since np.mean only take one argument. Running your code will result in TypeError: tuple indices must be integers or slices, not list
Oct 29, 2018 at 11:34 comment added Taylor np.mean([1,2,3],[4,5,6]) this what l mean @ZisIsNotZis
Oct 29, 2018 at 5:40 comment added ZisIsNotZis I believe np.mean take one array argument only: np.mean(a, axis=None, dtype=None, out=None, keepdims=<no value>). What do you mean by np.mean(my_data[i][j],my_data[i][j+1],axis=0)?
Oct 28, 2018 at 14:29 comment added Taylor @JohnZwinck, l can't make them into a single multidimensional array because each my_data[i] is a data example which is different from my_data[j] where i !=j. So the process l defined for computing the means of two successive arrays concern each my_data[i] , but can't for example compute the mean of the last array of my_data[i] and the first array of my_data[i+1]. Hope it's clear.
Oct 28, 2018 at 14:23 comment added Taylor for instace my_data[0]=[ [0.45,0.12,...,017 ],[0,0.13,...,0.78 ],...,[0.23, 0.17,...,0.98] ]
Oct 28, 2018 at 14:21 comment added John Zwinck Why do you have an array of arrays? It is no better than a list of arrays. Try to get all your data into a single multidimensional array.
Oct 28, 2018 at 14:18 history asked Taylor CC BY-SA 4.0