Alright. Going for scipy.special then. Thanks for the quick answer.

Cheers
Johannes

On 14.03.18, 19:03, "NumPy-Discussion on behalf of Marten van Kerkwijk" 
<numpy-discussion-bounces+jkkulick=amazon...@python.org on behalf of 
m.h.vankerkw...@gmail.com> wrote:

    On Wed, Mar 14, 2018 at 9:44 AM, Hameer Abbasi
    <einstein.edi...@gmail.com> wrote:
    > 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.
    
    My mistake - I thought the result was reduced, but you only need a
    reduction along the way. Writing this in terms of standard functions
    is certainly fine!
    -- Marten
    _______________________________________________
    NumPy-Discussion mailing list
    NumPy-Discussion@python.org
    https://mail.python.org/mailman/listinfo/numpy-discussion
    

Amazon Development Center Germany GmbH
Berlin - Dresden - Aachen
main office: Krausenstr. 38, 10117 Berlin
Geschaeftsfuehrer: Dr. Ralf Herbrich, Christian Schlaeger
Ust-ID: DE289237879
Eingetragen am Amtsgericht Charlottenburg HRB 149173 B
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion

Reply via email to