The identity function, defined by.
More...
#include <identity_function.hpp>
|
| static double | Fn (const double x) |
| | Computes the identity function. More...
|
| |
| template<typename InputVecType , typename OutputVecType > |
| static void | Fn (const InputVecType &x, OutputVecType &y) |
| | Computes the identity function. More...
|
| |
| static double | Deriv (const double) |
| | Computes the first derivative of the identity function. More...
|
| |
| template<typename InputVecType , typename OutputVecType > |
| static void | Deriv (const InputVecType &y, OutputVecType &x) |
| | Computes the first derivatives of the identity function. More...
|
| |
| template<typename eT > |
| static void | Deriv (const arma::Cube< eT > &y, arma::Cube< eT > &x) |
| | Computes the first derivatives of the identity function using a 3rd order tensor as input. More...
|
| |
The identity function, defined by.
\begin{eqnarray*} f(x) &=& x \\ f'(x) &=& 1 \end{eqnarray*}
◆ Deriv() [1/3]
| static double mlpack::ann::IdentityFunction::Deriv |
( |
const double |
| ) |
|
|
inlinestatic |
Computes the first derivative of the identity function.
- Parameters
-
- Returns
- f'(x)
◆ Deriv() [2/3]
template<typename InputVecType , typename OutputVecType >
| static void mlpack::ann::IdentityFunction::Deriv |
( |
const InputVecType & |
y, |
|
|
OutputVecType & |
x |
|
) |
| |
|
inlinestatic |
Computes the first derivatives of the identity function.
- Parameters
-
| y | Input data/activation. |
| x | The resulting derivatives. |
◆ Deriv() [3/3]
template<typename eT >
| static void mlpack::ann::IdentityFunction::Deriv |
( |
const arma::Cube< eT > & |
y, |
|
|
arma::Cube< eT > & |
x |
|
) |
| |
|
inlinestatic |
Computes the first derivatives of the identity function using a 3rd order tensor as input.
- Parameters
-
| y | Input activations. |
| x | The resulting derivatives. |
◆ Fn() [1/2]
| static double mlpack::ann::IdentityFunction::Fn |
( |
const double |
x | ) |
|
|
inlinestatic |
Computes the identity function.
- Parameters
-
- Returns
- f(x).
◆ Fn() [2/2]
template<typename InputVecType , typename OutputVecType >
| static void mlpack::ann::IdentityFunction::Fn |
( |
const InputVecType & |
x, |
|
|
OutputVecType & |
y |
|
) |
| |
|
inlinestatic |
Computes the identity function.
- Parameters
-
| x | Input data. |
| y | The resulting output activation. |
The documentation for this class was generated from the following file: