[mlpack-git] [mlpack] improve speed of SparseAutoencoder and make it more flexible (#451)
stereomatchingkiss
notifications at github.com
Tue Sep 29 09:27:39 EDT 2015
> + * 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)));
I am totally fine with that
---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/451/files#r40670241
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150929/f2d8fb1c/attachment.html>
More information about the mlpack-git
mailing list