MLBazaar / MLBazaar/BTB

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''

Open
#109 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
Python
Stars
176
Forks
40
PR merge metrics
No merged PRs in 30d

Description

  • BTB version: 06daf139b88854c727d352a3c9dc919760e02fd6
  • 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at lib/python3.7/site-packages/btb/tuning/gp.py, especially _acquire around line 86, and reproduce the GPEi call in the reported Python 3.7.2/Debian environment. Compare it with GP using the same arguments and investigate the scipy.stats cdf path shown in the traceback; done means GPEi no longer raises the isnan TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.