Add softplus implementation in scipy.special

[email protected]
Newsgroups gmane.comp.python.scientific.devel
Message-ID <[email protected]>
Hello Everyone,
It might be nice to have a numerically stable softplus implementation, ie np.log1p(np.exp(x))

This implementation can be based on the following stackoverflow answers :
https://cs.stackexchange.com/questions/110798/numerically-stable-log1pexp-calculation
https://stackoverflow.com/questions/44230635/avoid-overflow-with-softplus-function-in-python

It can have a good place in the scipy module as it has other applications apart from ML/AI like it's a quite natural penalty function in optimization if one desires a smooth penalty in some optimization problems.

All opinions are welcome. Let's discuss this?
_______________________________________________
SciPy-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/scipy-dev.python.org/
Member address: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.