ml_ANN_MLP_ActivationFunctions
import { ml_ANN_MLP_ActivationFunctions } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods.
possible activation functions
Constructors and members
static IDENTITY
Identity function: f(x)=x
IDENTITY: ml_ANN_MLP_ActivationFunctionsValue<0>,static SIGMOID_SYM
Symmetrical sigmoid: f(x)=\beta*(1-e^{-\alpha x})/(1+e^{-\alpha x})
Note: If you are using the default sigmoid activation function with the default parameter values fparam1=0 and fparam2=0 then the function used is y = 1.7159*tanh(2/3 * x), so the output will range from [-1.7159, 1.7159], instead of [0,1].
SIGMOID_SYM: ml_ANN_MLP_ActivationFunctionsValue<1>,static GAUSSIAN
Gaussian function: f(x)=\beta e^{-\alpha x*x}
GAUSSIAN: ml_ANN_MLP_ActivationFunctionsValue<2>,static RELU
ReLU function: f(x)=max(0,x)
RELU: ml_ANN_MLP_ActivationFunctionsValue<3>,static LEAKYRELU
Leaky ReLU function: for x>0 f(x)=x and x<=0 f(x)=\alpha x
LEAKYRELU: ml_ANN_MLP_ActivationFunctionsValue<4>These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.