Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Conversation

@lucasplagwitz
Copy link
Contributor

@lucasplagwitz lucasplagwitz commented Sep 1, 2020

Change few lines to make it work with newest versions of scikit-learn and numpy. Short overview:

  • new GP in scikit-learn >=0.23: add y_normalize=False
  • new GP in scikit-learn >= 0.23: often throws nan error -> increase initial runs
  • numpy MaskArray -> numpy.ma.array
  • set matplotlib backend to Agg via export for conf.py

@pep8speaks
Copy link

pep8speaks commented Sep 1, 2020

Hello @lucasplagwitz! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-09-01 22:26:15 UTC

@lucasplagwitz
Copy link
Contributor Author

The scikit-learn NaN (normalize_y=True and one point => std=0) error with GP version >= 0.23 is now mentioned in the issue board: scikit-learn#18318. In future versions the n_initial_run increasment might not be necessary anymore, but I don't think they do any harm.

@holgern
Copy link
Contributor

holgern commented Sep 3, 2020

Thanks @lucasplagwitz , can you add [MRG] into the title of your pull request, when your PR is ready for review?

As soon as you added [MRG], I will start to review. Thanks again.

@lucasplagwitz
Copy link
Contributor Author

Thanks @holgern for your hint. Add the tag immediately. In case of merge, please be so kind and make a release so we can close #931, too. I saw the instruction on your readme but am not totally sure if it should be new 0.8....
Thanks for reviewing - hope it helped to bring scikit-optimize back to just work after pip/conda install.

@lucasplagwitz lucasplagwitz changed the title compatibility update [MRG] compatibility update Sep 3, 2020
Copy link
Contributor

@holgern holgern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good to me, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants