Activation functions.
More...
◆ ActivationFunc
◆ activate()
Run an activation function on a Matrix of data.
- Parameters
-
| data | The data to run the activation function on |
| act_func | The activation function |
- Returns
- The matrix of values resulting from the activation function
◆ get_activation_func()
| ActivationFunc CNum::Model::Activation::get_activation_func |
( |
::std::string | activation | ) |
|
Get an activation function from a string.
- Parameters
-
| activation | The name of the activation function (i.e. "sigmoid") |
- Returns
- The ActivationFunc
◆ sigmoid()
| double CNum::Model::Activation::sigmoid |
( |
double | value | ) |
|
Sigmoid function (for a single value).
- Parameters
-
| value | The x value in the sigmoid function |
- Returns
- The result of the sigmoid function