algorithm_functions.logistic_transformation#

algorithm_functions.logistic_transformation(matrix: ndarray) ndarray#

Applies the logistic function to a matrix.

The logistic function is equal to \(1/(1+exp(-x))\) for input \(x\).

Parameters:

matrix (np.ndarray) – The input matrix.

Returns:

np.ndarray – The transformed matrix.