Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UnaryFn ¶
var ( ConstantOne UnaryFn = func(x float64) float64 { return 1 } Identity UnaryFn = func(x float64) float64 { return x } Square UnaryFn = func(x float64) float64 { return x * x } Abs UnaryFn = func(x float64) float64 { return float64(math.Abs(float64(x))) } Sign UnaryFn = func(x float64) float64 { if x > 0 { return 1 } return -1 } Sigmoid UnaryFn = func(x float64) float64 { return float64(1.0 / (1.0 + math.Exp(-float64(x)))) } SigmoidPrime UnaryFn = func(x float64) float64 { x = Sigmoid(x) return x * (1 - x) } )
func KSigmoidPrime ¶
Click to show internal directories.
Click to hide internal directories.