Enum opencv::ml::ANN_MLP_ActivationFunctions
source · [−]#[repr(C)]
pub enum ANN_MLP_ActivationFunctions {
IDENTITY,
SIGMOID_SYM,
GAUSSIAN,
RELU,
LEAKYRELU,
}
Expand description
possible activation functions
Variants
IDENTITY
Identity function:
SIGMOID_SYM
Symmetrical sigmoid:
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].
GAUSSIAN
Gaussian function:
RELU
ReLU function:
LEAKYRELU
Leaky ReLU function: for x>0 and x<=0
Trait Implementations
sourceimpl Clone for ANN_MLP_ActivationFunctions
impl Clone for ANN_MLP_ActivationFunctions
sourcefn clone(&self) -> ANN_MLP_ActivationFunctions
fn clone(&self) -> ANN_MLP_ActivationFunctions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ANN_MLP_ActivationFunctions
impl Debug for ANN_MLP_ActivationFunctions
sourceimpl PartialEq<ANN_MLP_ActivationFunctions> for ANN_MLP_ActivationFunctions
impl PartialEq<ANN_MLP_ActivationFunctions> for ANN_MLP_ActivationFunctions
sourcefn eq(&self, other: &ANN_MLP_ActivationFunctions) -> bool
fn eq(&self, other: &ANN_MLP_ActivationFunctions) -> bool
impl Copy for ANN_MLP_ActivationFunctions
impl StructuralPartialEq for ANN_MLP_ActivationFunctions
Auto Trait Implementations
impl RefUnwindSafe for ANN_MLP_ActivationFunctions
impl Send for ANN_MLP_ActivationFunctions
impl Sync for ANN_MLP_ActivationFunctions
impl Unpin for ANN_MLP_ActivationFunctions
impl UnwindSafe for ANN_MLP_ActivationFunctions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more