package owl-base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type neuron_typ = {
  1. mutable wxi : t;
  2. mutable whi : t;
  3. mutable wxc : t;
  4. mutable whc : t;
  5. mutable wxf : t;
  6. mutable whf : t;
  7. mutable wxo : t;
  8. mutable who : t;
  9. mutable bi : t;
  10. mutable bc : t;
  11. mutable bf : t;
  12. mutable bo : t;
  13. mutable c : t;
  14. mutable h : t;
  15. mutable init_typ : Init.typ;
  16. mutable in_shape : int array;
  17. mutable out_shape : int array;
}

Neuron type definition.

val create : ?time_steps:int -> ?inputs:int -> int -> Init.typ -> neuron_typ

Create the neuron.

val connect : int array -> neuron_typ -> unit

Connect this neuron to others in a neural network.

val init : neuron_typ -> unit

Initialise the neuron and its parameters.

val reset : neuron_typ -> unit

Reset the parameters in a neuron.

val mktag : int -> neuron_typ -> unit

Tag the neuron, used by ``Algodiff`` module.

val mkpar : neuron_typ -> t array

Assemble all the parameters in an array, used by ``Optimise`` module.

val mkpri : neuron_typ -> t array

Assemble all the primial values in an array, used by ``Optimise`` module.

val mkadj : neuron_typ -> t array

Assemble all the adjacent values in an array, used by ``Optimise`` module.

val update : neuron_typ -> t array -> unit

Update parameters in a neuron, used by ``Optimise`` module.

val copy : neuron_typ -> neuron_typ

Make a deep copy of the neuron and its parameters.

val run : t -> neuron_typ -> t

Execute the computation in this neuron.

val to_string : neuron_typ -> string

Convert the neuron to its string representation. The string is often a summary of the parameters defined in the neuron.

val to_name : unit -> string

Return the name of the neuron.

OCaml

Innovation. Community. Security.