Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion causallearn/utils/KCI/KCI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down
2 changes: 1 addition & 1 deletion causallearn/utils/KCI/Kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down