cascade.utils.spearman_correlation

cascade.utils.spearman_correlation(x)[source]

Compute Spearman correlation matrix

Parameters:

x (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | spmatrix) – Input matrix

Return type:

ndarray

Returns:

Spearman correlation matrix