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

nan not allow in input data even if weight=0 #2

Open
sbailey opened this issue Oct 3, 2016 · 0 comments
Open

nan not allow in input data even if weight=0 #2

sbailey opened this issue Oct 3, 2016 · 0 comments

Comments

@sbailey
Copy link
Owner

sbailey commented Oct 3, 2016

As reported by Lingfeng Cheng at Cornell, input data cannot have NaN values even if the corresponding values are masked with weights=0. Normally masked data (weights=0) are effectively ignored via line 247:

b = A.T.dot( w*b )

But if any of the data in b are NaN, this results in a NaN output, not a 0 output for that element even if w (=weights) is 0. This results in an error like:

ValueError: On entry to DGELSD parameter number 6 had an illegal value

At minimum, catch NaNs in the input and report as a meaningful error. Explore whether masked NaNs can be ignored without requiring rewriting or recopying the input array.

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