The rectifier function, defined by.
More...
|
static double | deriv (const double y) |
| Computes the first derivative of the rectifier function. More...
|
|
template<typename InputType , typename OutputType > |
static void | deriv (const InputType &y, OutputType &x) |
| Computes the first derivatives of the rectifier function. More...
|
|
static double | fn (const double x) |
| Computes the rectifier function. More...
|
|
template<typename eT > |
static void | fn (const arma::Mat< eT > &x, arma::Mat< eT > &y) |
| Computes the rectifier function using a dense matrix as input. More...
|
|
template<typename eT > |
static void | fn (const arma::Cube< eT > &x, arma::Cube< eT > &y) |
| Computes the rectifier function using a 3rd-order tensor as input. More...
|
|
The rectifier function, defined by.
Definition at line 45 of file rectifier_function.hpp.
static double mlpack::ann::RectifierFunction::deriv |
( |
const double |
y | ) |
|
|
inlinestatic |
Computes the first derivative of the rectifier function.
- Parameters
-
- Returns
- f'(x)
Definition at line 91 of file rectifier_function.hpp.
Referenced by deriv().
template<typename InputType , typename OutputType >
static void mlpack::ann::RectifierFunction::deriv |
( |
const InputType & |
y, |
|
|
OutputType & |
x |
|
) |
| |
|
inlinestatic |
Computes the first derivatives of the rectifier function.
- Parameters
-
y | Input activations. |
x | The resulting derivatives. |
Definition at line 103 of file rectifier_function.hpp.
References deriv().
static double mlpack::ann::RectifierFunction::fn |
( |
const double |
x | ) |
|
|
inlinestatic |
template<typename eT >
static void mlpack::ann::RectifierFunction::fn |
( |
const arma::Mat< eT > & |
x, |
|
|
arma::Mat< eT > & |
y |
|
) |
| |
|
inlinestatic |
Computes the rectifier function using a dense matrix as input.
- Parameters
-
x | Input data. |
y | The resulting output activation. |
Definition at line 66 of file rectifier_function.hpp.
template<typename eT >
static void mlpack::ann::RectifierFunction::fn |
( |
const arma::Cube< eT > & |
x, |
|
|
arma::Cube< eT > & |
y |
|
) |
| |
|
inlinestatic |
Computes the rectifier function using a 3rd-order tensor as input.
- Parameters
-
x | Input data. |
y | The resulting output activation. |
Definition at line 78 of file rectifier_function.hpp.
References fn().
The documentation for this class was generated from the following file: