[scikit-learn] numpy.amin behaviour with multidimensionnal arrays
greg315 at hotmail.fr
Thu Dec 29 17:06:50 EST 2016
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 l2 x..x ln containing the operations results is returned?
( Finally I'm not sure this sentence really clarify ... ;-) )
De : scikit-learn <scikit-learn-bounces+greg315=hotmail.fr at python.org> de la part de Jacob Schreiber <jmschreiber91 at gmail.com>
Envoyé : jeudi 29 décembre 2016 20:22
À : Scikit-learn user and developer mailing list
Objet : Re: [scikit-learn] numpy.amin behaviour with multidimensionnal arrays
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 <greg315 at hotmail.fr<mailto:greg315 at hotmail.fr>> wrote:
I would like to understand the behaviour of the scipy.spatial.kdtree<http://aka.ms/weboutlook> 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
scikit-learn mailing list
scikit-learn at python.org<mailto:scikit-learn at python.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the scikit-learn