[scikit-learn] numpy.amin behaviour with multidimensionnal arrays

2016-12-29 Thread greg g
Hi, I would like to understand the behaviour of the scipy.spatial.kdtree class that uses numpy.amin function. In the numpy.amin description, we find that it returns the "minimum value along a given axis" What does it mean exactly ? Thanks for any help Gregory ___

Re: [scikit-learn] numpy.amin behaviour with multidimensionnal arrays

2016-12-29 Thread Jacob Schreiber
It means that instead of returning the minimum value anywhere in the entire matrix, it will return the minimum value for each column or each row depending on which axis you put in, so a vector instead of a scalar. On Thu, Dec 29, 2016 at 6:00 AM, greg g wrote: > Hi, > > I would like to understan

Re: [scikit-learn] Bookmarklet to view documentation on CircleCI

2016-12-29 Thread Andy
On 12/21/2016 07:48 PM, Joel Nothman wrote: Well, you can as a browser extension. I just haven't bothered to investigate that technology when there's so much code to review and write. Can you post it to the docs or maybe more appropriately to the wiki where it's easier to discover and link t

Re: [scikit-learn] numpy.amin behaviour with multidimensionnal arrays

2016-12-29 Thread greg g
Thanks Is this a numpy specific terminology ? For a multidimensionnal array with dimension=n and size l1 x l2 x ... x ln, does "along axis=0" mean that l2 x..x ln operations are performed scrolling first dimension, each operation on l1 elements, and that an array with dimension n-1 and size l

Re: [scikit-learn] numpy.amin behaviour with multidimensionnal arrays

2016-12-29 Thread Juan Nunez-Iglesias
Hi Greg, I don't know how specific it is to NumPy, but that's definitely the correct way to talk about it in NumPy, and your understanding in your example is spot-on. This is true of many NumPy functions. Juan. On 30 Dec. 2016, 9:08 AM +1100, greg g , wrote: > Thanks > Is this a numpy specific