[Haskell-cafe] Re: haskell blas bindings: does iomatrix gemv transposing of matrix a?

Joe Buehler aspam at cox.net
Fri Sep 26 07:08:48 EDT 2008


Anatoly Yakovenko wrote:

> e = exp 1.0
> sigmoid xx = 1.0 / (1 + (e ** (1.0 * xx)))

That 1.0 * xx caught my eye.

In case this was an oversight on your part: if you mean the usual sigmoid
function, that should be 1.0 / (1 + (e ** (0.0 - x))).
-- 
Joe Buehler



More information about the Haskell-Cafe mailing list