The softsign function, defined by.
More...
|
static double | deriv (const double y) |
| Computes the first derivative of the softsign function. More...
|
|
template<typename InputVecType , typename OutputVecType > |
static void | deriv (const InputVecType &y, OutputVecType &x) |
| Computes the first derivatives of the softsign function. More...
|
|
static double | fn (const double x) |
| Computes the softsign function. More...
|
|
template<typename InputVecType , typename OutputVecType > |
static void | fn (const InputVecType &x, OutputVecType &y) |
| Computes the softsign function. More...
|
|
static double | inv (const double y) |
| Computes the inverse of the softsign function. More...
|
|
template<typename InputVecType , typename OutputVecType > |
static void | inv (const InputVecType &y, OutputVecType &x) |
| Computes the inverse of the softsign function. More...
|
|
The softsign function, defined by.
Definition at line 47 of file softsign_function.hpp.
static double mlpack::ann::SoftsignFunction::deriv |
( |
const double |
y | ) |
|
|
inlinestatic |
Computes the first derivative of the softsign function.
- Parameters
-
- Returns
- f'(x)
Definition at line 84 of file softsign_function.hpp.
template<typename InputVecType , typename OutputVecType >
static void mlpack::ann::SoftsignFunction::deriv |
( |
const InputVecType & |
y, |
|
|
OutputVecType & |
x |
|
) |
| |
|
inlinestatic |
Computes the first derivatives of the softsign function.
- Parameters
-
y | Input activations. |
x | The resulting derivatives. |
Definition at line 96 of file softsign_function.hpp.
static double mlpack::ann::SoftsignFunction::fn |
( |
const double |
x | ) |
|
|
inlinestatic |
template<typename InputVecType , typename OutputVecType >
static void mlpack::ann::SoftsignFunction::fn |
( |
const InputVecType & |
x, |
|
|
OutputVecType & |
y |
|
) |
| |
|
inlinestatic |
Computes the softsign function.
- Parameters
-
x | Input data. |
y | The resulting output activation. |
Definition at line 70 of file softsign_function.hpp.
References fn().
static double mlpack::ann::SoftsignFunction::inv |
( |
const double |
y | ) |
|
|
inlinestatic |
Computes the inverse of the softsign function.
- Parameters
-
- Returns
- f^{-1}(y)
Definition at line 107 of file softsign_function.hpp.
Referenced by inv().
template<typename InputVecType , typename OutputVecType >
static void mlpack::ann::SoftsignFunction::inv |
( |
const InputVecType & |
y, |
|
|
OutputVecType & |
x |
|
) |
| |
|
inlinestatic |
Computes the inverse of the softsign function.
- Parameters
-
y | Input data. |
x | The resulting inverse of the input data. |
Definition at line 122 of file softsign_function.hpp.
References inv().
The documentation for this class was generated from the following file: