algorithm_functions.inverse_logistic_transformation_matrix#
- algorithm_functions.inverse_logistic_transformation_matrix(Matrix: ndarray, ALGORITHM_PARAMETERS: dict[str, Any]) ndarray #
Calculates the inverse logistic transformation of a matrix.
If the matrix contains 0 or 1 values, they are first set to the values
INVERSE_ZERO
and1-INVERSE_ZERO
, respectively, to avoid computational problems due to the use of the natural logarithm. The inverse function is equal to \(ln(x/(1-x))\) for input \(x\).- Parameters:
Matrix (np.ndarray) – The matrix that is inversely transformed.
ALGORITHM_PARAMETERS (dict[str, Any]) – The algorithm parameters. The parameter
INVERSE_ZERO
is at least necessary. Seemain.py
for parameter explanations.
- Returns:
transformed_matrix (np.ndarray) – The inversely transformed matrix.