skfolio.utils.stats.assert_is_square#

skfolio.utils.stats.assert_is_square(x)[来源]#

如果矩阵不是方阵,则引发错误。

Parameters:
xndarray of shape (n, n)

矩阵。

Raises:
ValueError: if the matrix is not square.