Module Sig.Loss

Loss module

type typ =
  1. | Hinge
  2. | L1norm
  3. | L2norm
  4. | Quadratic
  5. | Cross_entropy
  6. | Custom of Algodiff.t -> Algodiff.t -> Algodiff.t

Types of loss functions.

val run : typ -> Algodiff.t -> Algodiff.t -> Algodiff.t

Execute the computations defined in module typ.

val to_string : typ -> string

Convert the module typ to its string representation.