Go to the documentation of this file.
24 #ifndef MLPACK_METHODS_ANN_LAYER_ELU_HPP
25 #define MLPACK_METHODS_ANN_LAYER_ELU_HPP
108 typename InputDataType = arma::mat,
109 typename OutputDataType = arma::mat
138 template<
typename InputType,
typename OutputType>
139 void Forward(
const InputType& input, OutputType& output);
150 template<
typename DataType>
151 void Backward(
const DataType& input,
const DataType& gy, DataType& g);
159 OutputDataType
const&
Delta()
const {
return delta; }
161 OutputDataType&
Delta() {
return delta; }
164 double const&
Alpha()
const {
return alpha; }
174 double const&
Lambda()
const {
return lambda; }
179 template<
typename Archive>
184 OutputDataType delta;
187 OutputDataType outputParameter;
190 arma::mat derivative;
213 #include "elu_impl.hpp"
void Forward(const InputType &input, OutputType &output)
Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activ...
The core includes that mlpack expects; standard C++ includes and Armadillo.
double & Alpha()
Modify the non zero gradient.
OutputDataType const & Delta() const
Get the delta.
double const & Alpha() const
Get the non zero gradient.
bool & Deterministic()
Modify the value of deterministic parameter.
Linear algebra utility functions, generally performed on matrices or vectors.
void serialize(Archive &ar, const unsigned int)
Serialize the layer.
OutputDataType & OutputParameter()
Modify the output parameter.
ELU()
Create the ELU object.
void Backward(const DataType &input, const DataType &gy, DataType &g)
Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backw...
OutputDataType & Delta()
Modify the delta.
bool Deterministic() const
Get the value of deterministic parameter.
The ELU activation function, defined by.
ELU(const double alpha)
Create the ELU object using the specified parameter.
OutputDataType const & OutputParameter() const
Get the output parameter.
double const & Lambda() const
Get the lambda parameter.