Activation

Compute activation function values and write them to the passed vector/matrix.

bool vector::Activation(
  vector&                   vect_out,      // vector to get values
  ENUM_ACTIVATION_FUNCTION  activation     // function type
   );
 
 
bool matrix::Activation(
  matrix&                   matrix_out,    // matrix to get values
  ENUM_ACTIVATION_FUNCTION  activation     // function type
   );

Parameters

vect_out/matrix_out

 [out] Vector or matrix to get the computed values of the activation function.

activation

[in]  Activation function type from the ENUM_ACTIVATION_FUNCTION enumeration.

Return Value

Returns true on success, false otherwise.

Note

The neural network activation function determines the output value of a neuron depending on the weighted sum of inputs. The selection of the activation function has a big impact on the neural network performance. Different model parts (layers) can use different activation functions.