#[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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)