Skip to content

Commit

Permalink
Merge pull request #193 from zhi-yi-huang/issue#186
Browse files Browse the repository at this point in the history
fix: fix issue#186
  • Loading branch information
kunwuz authored Aug 25, 2024
2 parents ecc66e3 + 9c2a8e8 commit 7bd7c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions causallearn/score/LocalScoreFunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def local_score_cv_general(
PAi = list(PAi)

T = Data.shape[0]
X = Data[:, Xi]
X = Data[:, [Xi]]
var_lambda = parameters["lambda"] # regularization parameter
k = parameters["kfold"] # k-fold cross validation
n0 = math.floor(T / k)
Expand Down Expand Up @@ -715,7 +715,7 @@ def local_score_marginal_general(
"""

T = Data.shape[0]
X = Data[:, Xi]
X = Data[:, [Xi]]
dX = X.shape[1]

# set the kernel for X
Expand Down

0 comments on commit 7bd7c68

Please sign in to comment.