<p>In <a href="https://github.com/mlpack/mlpack/pull/451#discussion_r40670241">src/mlpack/methods/ann/activation_functions/lazy_logistic_function.hpp</a>:</p>
<pre style='color:#555'>> + * f^{-1}(y) &=& ln(\frac{y}{1-y})
> + * @f}
> + */
> +class LazyLogisticFunction
> +{
> + public:
> + /**
> + * Computes the logistic function without checking overflow or underflow
> + *
> + * @param x Input data.
> + * @param y The resulting output activation.
> + */
> + template<typename InputVecType, typename OutputVecType>
> + static void fn(const InputVecType& x, OutputVecType& y)
> + {
> + y = (1.0 / (1 + arma::exp(-x)));
</pre>
<p>I am totally fine with that</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/451/files#r40670241">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFN80j8mSpcs9VrjoFhguFNXiByq-ks5o2olLgaJpZM4GAqt4.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/451/files#r40670241"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>