Skip to content

Commit

Permalink
Added support for MISH activation function.
Browse files Browse the repository at this point in the history
Minor update.
  • Loading branch information
saaltone committed Feb 19, 2024
1 parent 3282147 commit 61e2c0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/activation/ActivationFunction.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public ActivationFunction(ActivationFunctionType activationFunctionType, String
case SOFTMAX -> UnaryFunctionType.SOFTMAX;
case GAUSSIAN -> UnaryFunctionType.GAUSSIAN;
case SINACT -> UnaryFunctionType.SINACT;
case MISH -> UnaryFunctionType.MISH;
case LOGIT -> UnaryFunctionType.LOGIT;
case CUSTOM -> UnaryFunctionType.CUSTOM;
}, params);
Expand Down
10 changes: 9 additions & 1 deletion src/core/activation/ActivationFunctionType.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public enum ActivationFunctionType {
SIGMOID,

/**
* Swish
* Swish (Silu)
*
*/
SWISH,
Expand All @@ -40,6 +40,7 @@ public enum ActivationFunctionType {
*
*/
BIPOLARSIGMOID,

/**
* Scaled Hyperbolic tangent
*
Expand All @@ -51,6 +52,7 @@ public enum ActivationFunctionType {
*
*/
TANH,

/**
* Hyperbolic tangent sigmoid
*
Expand Down Expand Up @@ -141,6 +143,12 @@ public enum ActivationFunctionType {
*/
SINACT,

/**
* Mish.
*
*/
MISH,

/**
* Logit
*
Expand Down

0 comments on commit 61e2c0c

Please sign in to comment.