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
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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