-
Notifications
You must be signed in to change notification settings - Fork 14
ENH: Implement nan_to_num
function
#398
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
Conversation
Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
nan_to_num
functionnan_to_num
function
Have addressed your comments.
|
ran this through sklearn and nothing immediately complained! Once we have some more tests here, lets merge it and make a release, then try to integrate it into scikit-learn 👍 |
I've added more tests @lucascolley. The main change is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @paddyroddy, this looks great!
Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
let me release a 0.8.2 with this tonight and make a PR integrating it into sklearn |
Fixes #304. This is still in progress but want to see what would happen in CI.
nan_to_num
is a weird function that has unexpected behaviour IMO (e.g. infinities are converted too) but feel, for now, we should keep it as downstream behaviours would expect.