#[repr(C)]pub enum ANN_MLP_ActivationFunctions {
IDENTITY = 0,
SIGMOID_SYM = 1,
GAUSSIAN = 2,
RELU = 3,
LEAKYRELU = 4,
}
Expand description
possible activation functions
Variants§
IDENTITY = 0
Identity function:
SIGMOID_SYM = 1
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 = 2
Gaussian function:
RELU = 3
ReLU function:
LEAKYRELU = 4
Leaky ReLU function: for x>0 and x<=0
Trait Implementations§
Source§impl Clone for ANN_MLP_ActivationFunctions
impl Clone for ANN_MLP_ActivationFunctions
Source§fn clone(&self) -> ANN_MLP_ActivationFunctions
fn clone(&self) -> ANN_MLP_ActivationFunctions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ANN_MLP_ActivationFunctions
impl Debug for ANN_MLP_ActivationFunctions
Source§impl From<ANN_MLP_ActivationFunctions> for i32
impl From<ANN_MLP_ActivationFunctions> for i32
Source§fn from(v: ANN_MLP_ActivationFunctions) -> Self
fn from(v: ANN_MLP_ActivationFunctions) -> Self
Converts to this type from the input type.
Source§impl TryFrom<i32> for ANN_MLP_ActivationFunctions
impl TryFrom<i32> for ANN_MLP_ActivationFunctions
impl Copy for ANN_MLP_ActivationFunctions
impl Eq for ANN_MLP_ActivationFunctions
impl StructuralPartialEq for ANN_MLP_ActivationFunctions
Auto Trait Implementations§
impl Freeze for ANN_MLP_ActivationFunctions
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more