Packages

o

scalation.analytics

ActivationFunc

object ActivationFunc

The ActivationFunc object contains common Activation functions.

See also

en.wikipedia.org/wiki/Activation_function

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActivationFunc
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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.

  6. 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

  7. 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