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

Regression in GP standard deviation where y_train.std() == 0 #18318

Closed
jnothman opened this issue Sep 1, 2020 · 2 comments · Fixed by SkuaD01/scikit-learn#3 or #19703
Closed

Regression in GP standard deviation where y_train.std() == 0 #18318

jnothman opened this issue Sep 1, 2020 · 2 comments · Fixed by SkuaD01/scikit-learn#3 or #19703
Labels
Bug Easy Well-defined and straightforward way to resolve module:gaussian_process Regression
Milestone

Comments

@jnothman
Copy link
Member

jnothman commented Sep 1, 2020

In #15782 (comment), @rkern writes regarding that fix:

FWIW, this broke a few downstream users where y_train.std() == 0 (e.g. only one datapoint) when being used for Bayesian optimization. This probably needs a guard for such a case (which is common in the Bayesian optimization use case)

More detail in bayesian-optimization/BayesianOptimization#243 (comment):

The normalize_y=True option which is used now divides out the standard deviation of the y data, not just subtracting the mean. When there is just one data point, this results in a NaN.

@jnothman jnothman added Bug help wanted Easy Well-defined and straightforward way to resolve labels Sep 1, 2020
@boricles
Copy link
Contributor

boricles commented Sep 1, 2020

Hi, I am new. I still need a bit of time to check/review this issue, not sure right now; but I can give it a try this weekend.

@boricles
Copy link
Contributor

After a small dig in, I will take this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Easy Well-defined and straightforward way to resolve module:gaussian_process Regression
Projects
None yet
4 participants