Module Differentiable.Derivable

Derivable functions.

type t = (float -> float) * (float -> float)

A derivable function consists of a function together with the associated derivative.

val map : t -> float -> float

Apply a derivable function.

val derivative : t -> float -> float

Derivative of a derivable function.

val sigmoid : t

The sigmoid activation function.

val tanh : t

Hyperbolic tangent.

val relu : t

The rectified linear unit activation function.

val square : t

The square function.

val sin : t

The sine function.

val log : t

The log function.