diff --git a/causallearn/utils/KCI/KCI.py b/causallearn/utils/KCI/KCI.py index 41cbd467..433107cc 100644 --- a/causallearn/utils/KCI/KCI.py +++ b/causallearn/utils/KCI/KCI.py @@ -474,7 +474,7 @@ def kernel_matrix(self, data_x, data_y, data_z): return Kx, Ky, Kzx, Kzy def KCI_V_statistic(self, Kx, Ky, Kzx, Kzy): - """ + r""" Compute V test statistic from kernel matrices Kx and Ky Parameters ---------- diff --git a/causallearn/utils/KCI/Kernel.py b/causallearn/utils/KCI/Kernel.py index c062a844..a7ea31dc 100644 --- a/causallearn/utils/KCI/Kernel.py +++ b/causallearn/utils/KCI/Kernel.py @@ -41,7 +41,7 @@ def center_kernel_matrix(K: ndarray): return K - (K_colsums[None, :] + K_colsums[:, None]) / n + (K_allsum / n ** 2) def center_kernel_matrix_regression(K: ndarray, Kz: ndarray, epsilon: float): - """ + r""" Centers the kernel matrix via a centering matrix R=I-Kz(Kz+\epsilonI)^{-1} and returns RKR """ n = shape(K)[0]