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

ValueError for RAML type number and value of nan or inf #123

Open
schuderer opened this issue Jul 6, 2020 · 0 comments
Open

ValueError for RAML type number and value of nan or inf #123

schuderer opened this issue Jul 6, 2020 · 0 comments
Labels
bug Something isn't working needs discussion Several opinions should be heard and considered

Comments

@schuderer
Copy link
Owner

schuderer commented Jul 6, 2020

  • ML Launchpad version: 1.0.0
  • Model Type used: Python
  • DataSource type(s) used: CSV
  • Python version: 3.x
  • Operating System: n/a

Description

Python and Numpy numeric formats allow for nan of +/-inf values.

But running the Iris example (tree_*) REST API with a numeric parameter like petal_width=nan produces

ValueError: Input contains NaN, infinity or a value too large for dtype('float32').

(a 505 in an WSGI application)

Steps to reproduce

cd examples
mllaunchpad -c tree_cfg.yml api
curl http://127.0.0.1:5000/iris/v0/mythings?sepal.length=5.6&sepal.width=2.7&petal.length=4.2&petal.width=nan
# --> ValueError: Input contains NaN, infinity or a value too large for dtype('float32').

(submitted for a user)

@schuderer schuderer added bug Something isn't working needs discussion Several opinions should be heard and considered labels Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs discussion Several opinions should be heard and considered
Projects
None yet
Development

No branches or pull requests

1 participant