Module Backprop.Differentiable

Differentiable functions.

module Derivable : sig ... end

Derivable functions.

type ('a, 'b) t = 'a -> 'b * ('b -> 'a)

A differentiable function. Given an input x, such a function f returns the output f(x), and the function which given the variation in the output provides the variation in the input.

val seq : ('a, 'b) t -> ('b, 'c) t -> ('a, 'c) t

Sequential composition.

val ($>) : ('a, 'b) t -> ('b, 'c) t -> ('a, 'c) t
val of_derivable : Derivable.t -> (float, float) t

Build from a derivable real function.

val sigmoid : (float, float) t

The sigmoid activation function.

val tanh : (float, float) t

Hyperbolic tangent.

val relu : (float, float) t

The rectified linear unit activation function.

val square : (float, float) t

The square function.

val sin : (float, float) t

The sine function.

val log : (float, float) t

The log function.

module Linear : sig ... end
module Vector : sig ... end

Functions operating on vectors.

module Matrix : sig ... end