Package com.github.raimannma.methods
Enum Activation
- All Implemented Interfaces:
Serializable,Comparable<Activation>,Constable
public enum Activation extends Enum<Activation>
The enum Activation.
Hold all activation function and can calculate the activation value for a given input and activation method.
- Author:
- Manuel Raimann
- See Also:
- Wikipedia article
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSOLUTEThe Absolute.AR_SINHThe ArcTan.ARC_TANThe ArcTan.BENT_IDENTITYThe Bent identity.BINARY_STEPThe Binary Step.BIPOLARThe Bipolar.BIPOLAR_SIGMOIDThe Bipolar sigmoid.GAUSSIANThe Gaussian.HARD_TANHThe Hard tanh.IDENTITYThe Identity.INVERSEThe Inverse.LOGISTICThe Logistic activation.RELUThe Relu.SINCThe SINC.SINUSOIDThe Sinusoid.SOFT_PLUSThe SoftPlus.SOFTSIGNThe Softsign.TANHThe Tanh. -
Method Summary
Modifier and Type Method Description abstract doublecalc(double x)Calculates the activation value of given input and .static ActivationvalueOf(String name)Returns the enum constant of this type with the specified name.static Activation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ABSOLUTE
The Absolute. -
ARC_TAN
The ArcTan.- See Also:
- Wikipedia article
-
AR_SINH
The ArcTan.- See Also:
- Wikipedia article
-
BENT_IDENTITY
The Bent identity. -
BINARY_STEP
The Binary Step.- See Also:
- Wikipedia article
-
BIPOLAR
The Bipolar. -
BIPOLAR_SIGMOID
The Bipolar sigmoid.- See Also:
- Wikipedia article
-
GAUSSIAN
The Gaussian.- See Also:
- Wikipedia article
-
HARD_TANH
The Hard tanh. -
IDENTITY
The Identity.- See Also:
- Wikipedia article
-
INVERSE
The Inverse. -
LOGISTIC
The Logistic activation.- See Also:
- Wikipedia article
-
RELU
The Relu.- See Also:
- Wikipedia article
-
SINUSOID
The Sinusoid.- See Also:
- Wikipedia article
-
SOFTSIGN
The Softsign. -
SOFT_PLUS
The SoftPlus. -
SINC
The SINC.- See Also:
- Wikipedia article
-
TANH
The Tanh.- See Also:
- Wikipedia article
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
calc
public abstract double calc(double x)Calculates the activation value of given input and .- Parameters:
x- the x- Returns:
- the double
-