mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 18:38:39 +00:00
elu activation is added
This commit is contained in:
parent
d40c74b379
commit
5453434e96
@ -9,9 +9,10 @@ https://en.wikipedia.org/wiki/Rectifier_(neural_networks)
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
|
||||
def elu_activation(vector: np.array, alpha: float) -> np.array:
|
||||
def elu_activation(vector: np.ndarray, alpha: float) -> np.ndarray:
|
||||
"""
|
||||
Implements the ELU activation function.
|
||||
Parameters:
|
||||
|
Loading…
x
Reference in New Issue
Block a user