Optimise.Loss
Loss module
type typ =
| Hinge
| L1norm
| L2norm
| Quadratic
| Cross_entropy
| 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.