sigmoid

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sigmoid

func Sigmoid(xin float32) float32

Calculate an approximation to the Sigmoid function 1 / ( 1 + e^x ). * This is executed very frequently during neural net evaluation, so * careful optimisation here pays off. * * Statistics on Sigmoid(x) calls: * * >99% of the time, x is positive. * * 82% of the time, 3 < abs(x) < 8. * * 02/2017: The numbers above are 10+ years old * (old neural nets, possibly pruning nets not yet in use). * Current stats : * * 85% of the time, x is positive, comprising 80% < 10 and 20% > 10 * * 15% of the time, x is negative with 99%+ > -10

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL