Skip to content

Conversation

@Yard1
Copy link

@Yard1 Yard1 commented Sep 14, 2020

What does this implement/fix? Explain your changes.

Fixes division by zero error that may happen in GaussianProcessRegressor during normalization if the data passed is completely uniform (thus standard deviation is 0). This will cause the array to become all NaNs, causing an exception further down the line.

@Yard1 Yard1 changed the title Prevent division-by-0 error in GPR [MRG] Prevent division-by-0 error in GPR Sep 14, 2020
@Yard1 Yard1 closed this Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant