Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANM incompatible with scikit-learn >= 1.1.3 #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jonathan-Salisbury
Copy link

Pull 22199 into scikit-learn ([https://github.com/https://github.com/scikit-learn/scikit-learn/pull/22199]) changed the shape of the array returned by GaussianProcessRegressor which in turn introduced a bug causing ANM.cause_or_effect to return incorrect results. This pull requests reshapes the returned array using .reshape(-1, 1).

Signed-off-by: Jonathan Salisbury <[email protected]>
Copy link

@zhangtj1996 zhangtj1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there is a bug. This bug is fixed by adding .reshape(-1,1) to the gp prediction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants