Hi, Le 03/04/2012 22:10, Frédéric Bastien a écrit : > I would like to add this parameter to Theano. So my question is, will > the interface change or is it stable? I don't know for the stability, but for the existence of this new parameter:
https://github.com/numpy/numpy/blob/master/numpy/core/fromnumeric.py looking at "def sum(...)" it seems the keepdims=False parameter is here and was introduced 7 months ago by Mark Wiebe and Charles Harris. The docstring indeed says : keepdims : bool, optional If this is set to True, the axes which are reduced are left in the result as dimensions with size one. With this option, the result will broadcast correctly against the original `arr`. The commit message also mentions the skipna parameter, which is part of the overall NA implementation which is indeed tagged as somehow experimental (if I'm correct ! ), but I would assume that the keepdims=False parameter is an orthogonal issue. Hopefully somebody can give you a more precise answer ! Best, Pierre
signature.asc
Description: OpenPGP digital signature
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion