[SciPy-User] [SciPy-user] Avoiding inner for loops??
Tue Aug 21 19:52:28 CDT 2012
Actually one more thing I can't figure out, is I want to use the smallest
difference, ie. from ss2 to get the relevant paramater values.
ss2= ((obs[:, n_, n_, n_]- ans).sum(0)** 2).reshape(grid_size** 3)
index = np.argmin(ss2, 0)
but this index will be from the full grid (shape=8000) and not give me
something I can pull the values from the param1, param2, param3 arrays
View this message in context: http://old.nabble.com/Avoiding-inner-for-loops---tp34319763p34332296.html
Sent from the Scipy-User mailing list archive at Nabble.com.
More information about the SciPy-User