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

Usage of KCI test #69

Closed
Peng0618 opened this issue Aug 24, 2022 · 3 comments
Closed

Usage of KCI test #69

Peng0618 opened this issue Aug 24, 2022 · 3 comments

Comments

@Peng0618
Copy link

I am interested in the KCI independence test function (causallearn.utils.cit.kci) and testing it now.

In the test, the input "data" is set with a simple numpy data table and column indices X Y are set as 1,2. However, after running the function, there is a TypeError ""str" object is not callable", as shown below. Does anyone know what is the cause of this problem , or show me with a correct example about this function's usage? Thank you.

WeChat Image_20220824122322

@kunwuz
Copy link
Collaborator

kunwuz commented Aug 24, 2022

Thanks for reaching out. We just made a major refactor on our independence test functions and we haven't updated the corresponding parts of the document. For quick examples, you could try to refer TestCIT.py and TestCIT_KCI.py. We will update the document ASAP. Please let us know if there are any further questions.

@Peng0618
Copy link
Author

Thanks for you reply. Now it works!

image

@kunwuz
Copy link
Collaborator

kunwuz commented Aug 24, 2022

Cool! Thanks :)

@kunwuz kunwuz closed this as completed Aug 24, 2022
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

No branches or pull requests

2 participants