The identity function, defined by.
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...
|
|
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...
|
|
The identity function, defined by.
Definition at line 28 of file identity_function.hpp.
static double mlpack::ann::IdentityFunction::deriv |
( |
const double |
| ) |
|
|
inlinestatic |
Computes the first derivative of the identity function.
- Parameters
-
- Returns
- f'(x)
Definition at line 60 of file identity_function.hpp.
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 activations. |
x | The resulting derivatives. |
Definition at line 72 of file identity_function.hpp.
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. |
Definition at line 85 of file identity_function.hpp.
static double mlpack::ann::IdentityFunction::fn |
( |
const double |
x | ) |
|
|
inlinestatic |
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. |
Definition at line 49 of file identity_function.hpp.
The documentation for this class was generated from the following file: