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

derivatives not working: cpp conversion error #91

Open
zullu14 opened this issue Nov 12, 2020 · 0 comments
Open

derivatives not working: cpp conversion error #91

zullu14 opened this issue Nov 12, 2020 · 0 comments

Comments

@zullu14
Copy link

zullu14 commented Nov 12, 2020

Hi,
When trying to run any of the synthetic functions or my own functions using the observations of fun. derivatives,
I'm getting the following error:

Traceback (most recent call last):
File "/home/User/ENV_CMOE/lib/python3.6/site-packages/emcee/ensemble.py", line 505, in call
return self.f(x, *self.args, **self.kwargs)
File "/home/User/Cornell-MOE/moe/optimal_learning/python/cpp_wrappers/log_likelihood_mcmc.py", line 310, in compute_log_likelihood
cpp_utils.cppify(noise),
TypeError: No registered converter was able to produce a C++ rvalue of type int from this Python object of type numpy.int64

I'm changing the self._observations to numpy.arange(self._dim) instead of []. I've noticed that a similar issue is mentioned
in Issue #63 , but unfortunately, a proposed workaround with [float(x) for x in ...] doesn't work. Has anybody encountered a similar problem or knows how to fix this?

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