Neuron.Activation
type typ =
Owl_neural_neuron.Make(Owl_optimise_generic.Make(Owl_algodiff_generic.Make(A))).Activation.typ =
| Elu
| Relu
| Sigmoid
| HardSigmoid
| Softmax of int
| Softplus
| Softsign
| Tanh
| Relu6
| LeakyRelu of float
| TRelu of float
| Custom of Optimise.Algodiff.t -> Optimise.Algodiff.t
| None
type neuron_typ =
Owl_neural_neuron.Make(Owl_optimise_generic.Make(Owl_algodiff_generic.Make(A))).Activation.neuron_typ =
{
mutable activation : typ;
mutable in_shape : int array;
mutable out_shape : int array;
}
val create : typ -> neuron_typ
val connect : int array -> neuron_typ -> unit
val run_activation : Optimise.Algodiff.t -> typ -> Optimise.Algodiff.t
val copy : neuron_typ -> neuron_typ
val run : Optimise.Algodiff.t -> neuron_typ -> Optimise.Algodiff.t
val activation_to_string : typ -> string
val to_string : neuron_typ -> string