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

Buffer dtype Mismatch #8

Open
steve-wendel opened this issue Jul 2, 2021 · 0 comments
Open

Buffer dtype Mismatch #8

steve-wendel opened this issue Jul 2, 2021 · 0 comments

Comments

@steve-wendel
Copy link

In running the sample code, trigger_example.py, I receive the following error:

File "C:\Apps\Anaconda3\lib\site-packages\CTL\causal_tree_learn.py", line 75, in fit
self.tree.fit(x, y, t)
File "C:\Apps\Anaconda3\lib\site-packages\CTL\causal_tree\ctl_trigger\ctl_base_trigger.py", line 42, in fit
effect, trigger = tau_squared_trigger(y, t, self.min_size, self.quartile)
File "CTL\causal_tree\util_c.pyx", line 353, in CTL.causal_tree.util_c.tau_squared_trigger
File "CTL\causal_tree\util_c.pyx", line 402, in CTL.causal_tree.util_c.tau_squared_trigger
ValueError: Buffer dtype mismatch, expected 'long_t' but got 'long'

Searching online, it appears to be an issue with the conversion Causal Tree Learn is using from Python to C.

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

1 participant