Return the sigmoid of the input.
(value)
| 222 | # Two in-line functions required for calculating the bounding box |
| 223 | # descriptors: |
| 224 | def sigmoid(value): |
| 225 | """Return the sigmoid of the input.""" |
| 226 | return 1.0 / (1.0 + math.exp(-value)) |
| 227 | |
| 228 | def exponential(value): |
| 229 | """Return the exponential of the input.""" |