The ELU activation function, defined by. More...
Public Member Functions | |
| ELU (const double alpha=1.0) | |
| Create the ELU object using the specified parameters. More... | |
| double const & | Alpha () const |
| Get the non zero gradient. More... | |
| double & | Alpha () |
| Modify the non zero gradient. More... | |
template < typename DataType > | |
| void | Backward (const DataType &&input, DataType &&gy, DataType &&g) |
| Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backwards through f. More... | |
| OutputDataType const & | Delta () const |
| Get the delta. More... | |
| OutputDataType & | Delta () |
| Modify the delta. More... | |
template < typename InputType , typename OutputType > | |
| void | Forward (const InputType &&input, OutputType &&output) |
| Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activity forward through f. More... | |
| InputDataType const & | InputParameter () const |
| Get the input parameter. More... | |
| InputDataType & | InputParameter () |
| Modify the input parameter. More... | |
| OutputDataType const & | OutputParameter () const |
| Get the output parameter. More... | |
| OutputDataType & | OutputParameter () |
| Modify the output parameter. More... | |
template < typename Archive > | |
| void | serialize (Archive &ar, const unsigned int) |
| Serialize the layer. More... | |
The ELU activation function, defined by.
| InputDataType | Type of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
| OutputDataType | Type of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
| ELU | ( | const double | alpha = 1.0 | ) |
|
inline |
|
inline |
Modify the non zero gradient.
Definition at line 113 of file elu.hpp.
References ELU< InputDataType, OutputDataType >::serialize().
| void Backward | ( | const DataType && | input, |
| DataType && | gy, | ||
| DataType && | g | ||
| ) |
Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backwards through f.
Using the results from the feed forward pass.
| input | The propagated input activation. |
| gy | The backpropagated error. |
| g | The calculated gradient. |
| void Forward | ( | const InputType && | input, |
| OutputType && | output | ||
| ) |
Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activity forward through f.
| input | Input data used for evaluating the specified function. |
| output | Resulting output activation. |
|
inline |
|
inline |
|
inline |
|
inline |
| void serialize | ( | Archive & | ar, |
| const unsigned | int | ||
| ) |
Serialize the layer.
Referenced by ELU< InputDataType, OutputDataType >::Alpha().