object ActivationFunc
The ActivationFunc
object contains common Activation functions.
- See also
en.wikipedia.org/wiki/Activation_function
- Alphabetic
- By Inheritance
- ActivationFunc
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
gaussian(t: Double): Double
Compute the value of the 'gaussian' function at 't'.
Compute the value of the 'gaussian' function at 't'.
- t
the gaussian function argument
-
def
gaussianV(t: VectoD): VectoD
Return the vector of values of the 'gaussian' function applied to vector 't.' The values are computed in-place.
Return the vector of values of the 'gaussian' function applied to vector 't.' The values are computed in-place.
- t
the gaussian function vector argument
-
def
logistic(t: Double, a: Double, b: Double): Double
Compute the value of the 'logistic' function at 't'.
Compute the value of the 'logistic' function at 't'.
- t
the logistic function argument
- a
the shift parameter
- b
the spread parameter
-
def
logisticV(t: VectoD, a: Double, b: Double): VectoD
Compute the vector of values of the 'logistic' function applied to vector 't'.
Compute the vector of values of the 'logistic' function applied to vector 't'. The values are computed in-place.
- t
the logistic function argument
- a
the shift parameter
- b
the spread parameter
-
def
logit(p: Double): Double
Compute the log of the odds of an event occurring (e.g., success, 1).
Compute the log of the odds of an event occurring (e.g., success, 1). The inverse of the 'logit' function is the standard logistic function (sigmoid function).
- p
the probability, a number between 0 and 1.
-
def
sigmoid(t: Double): Double
Compute the value of the 'sigmoid' function at 't'.
Compute the value of the 'sigmoid' function at 't'. This is a special case of the logistic function, where 'a = 0' and 'b = 1'. It is also referred to as the standard logistic function. It is also the inverse of the logit function.
- t
the sigmoid function argument
-
def
sigmoidV(t: VectoD): VectoD
Return the vector of values of the 'sigmoid' function applied to vector 't.' The values are computed in-place.
Return the vector of values of the 'sigmoid' function applied to vector 't.' The values are computed in-place.
- t
the sigmoid function vector argument