Fix two corner cases in the new implementation of logistic sigmoid.
-
Truncate at the first point where the interpolant is exactly 1, such that 1 is returned for all arguments greater than or equal to it.
-
Make sure that Sigmoid(+Inf) = 1 in the generic implementation.
Edited by Rasmus Munk Larsen