skfolio.utils.stats.assert_is_symmetric#

skfolio.utils.stats.assert_is_symmetric(x)[source]#

Raises an error if the matrix is not symmetric.

Parameters:
xndarray of shape (n, m)

The matrix.

Raises:
ValueError: if the matrix is not symmetric.