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

TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'' #109

Open
KOLANICH opened this issue Jan 5, 2019 · 3 comments
Labels
bug Errors that need to be fixed help wanted

Comments

@KOLANICH
Copy link

KOLANICH commented Jan 5, 2019

  • BTB version: 06daf13
  • Python version: 3.7.2
  • Operating System: Debian stretch

DescriptionFile

"lib/python3.7/site-packages/btb/tuning/gp.py", line 86, in _acquire
ei = sigma * (z * Phi(z) + N(z))
File "lib/python3.7/site-packages/scipy/stats/_distn_infrastructure.py", line 1751, in cdf
place(output, (1-cond0)+np.isnan(x), self.badvalue)
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

What I Did

Called GPEi. GP with the same arguments works. GCP* fail with SingularMatrix.

https://gitlab.com/KOLANICH/UniOpt.py/-/jobs/141882424

@csala
Copy link
Contributor

csala commented Jan 7, 2019

Thanks for reporting this @KOLANICH.

However, could you be a bit more specific on the exact usage?

It would help a lot to see what arguments you passed to the class constructor and what was the sequence of method calls as well as the values passed to them so that we can reproduce the error on our side to investigate it.

@micahjsmith micahjsmith added bug Errors that need to be fixed help wanted labels Feb 13, 2019
@pvk-developer
Copy link
Collaborator

Hello @KOLANICH,

We have done some major reorganization and re-implemented the tuning section for a better usage. The following issues #131 and #134 could have fixed this issue, but it's hard to tell as we can't reproduce the error on our side.

Would you mind giving it another try and giving us feedback on this issue ?

@KOLANICH
Copy link
Author

KOLANICH commented Dec 3, 2019

However, could you be a bit more specific on the exact usage?

It would help a lot to see what arguments you passed to the class constructor and what was the sequence of method calls as well as the values passed to them so that we can reproduce the error on our side to investigate it.

Oops. I'm sorry that I have forgot to answer.

My use case is to wrap as much different optimizers as possible into a single interface. UniOpt.py is the lib providing a framework for wrapping very different optimizers easily (I have wrapped >16 libs) and calling them using a unified interface. The CI pipeline linked was the test using this optimizer against a hybrid of Ackley and Rosenbrock functions.

Thank you for notifying me about the architecture upgrade. Unfortunately currently I have no time to improve and even fix UniOpt (the upgrade of the architecture of BTB has likely broken the its backend in UniOpt), so I cannot answer rapidly if this bug can be closed right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Errors that need to be fixed help wanted
Projects
None yet
Development

No branches or pull requests

4 participants