Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This avoids basically doing 1 - 1, for example: >>> from math import exp >>> margin = -40 >>> 1 - 1 / (1 + exp(margin)) 0.0 >>> exp(margin) / (1 + exp(margin)) 4.248354255291589e-18 >>>
- Loading branch information