[Numpy-discussion] ENH: softmax

Hameer Abbasi einstein.edison at gmail.com
Wed Mar 14 09:44:49 EDT 2018


I possible, write it as a `gufunc`, so duck arrays can override with
`__array_ufunc__` if

necessary. -- Marten

Softmax is a very simple combination of elementary `ufunc`s with two
inputs, the weight vector `w` and the data `x`. Writing it as a `gufunc`
would be going overboard, IMO. Writing it as a combination of `ufunc`s and
avoiding Numpy-specific stuff should be good enough.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180314/50d4fd85/attachment.html>


More information about the NumPy-Discussion mailing list