Hyperactive icon indicating copy to clipboard operation
Hyperactive copied to clipboard

[DOC] jupyter notebook tutorial

Open fkiraly opened this issue 1 year ago • 6 comments

I would suggest to add a "standard" jupyter notebook tutorial to the entire package, in the examples directory, and also link ot from the docs.

In addition, it would be nice if users could read it on binder or otherwise in the cloud.

fkiraly avatar Aug 13 '24 17:08 fkiraly

More specific suggestions:

  • change content examples to a set of jupyter notebooks, at least the root level content
  • from content review, I gather there are multiple topics one could sort this into:
    • jupyter notebook about generic optimization problems
    • jupyter notebook with data science and AI applications, e.g., equivalent to GridSearchCV in scikit-learn

Further, due to the popularity of AI, perhaps the content that is, technically, secondary (AI applications), might be worth to place as the "first" notebook? That is, lead with data sci and AI, and present the more general applications in a second/advanced notebook.

fkiraly avatar Aug 15 '24 08:08 fkiraly

Am currently working on some corrections of this notebook (for general usage): https://github.com/SimonBlanke/hyperactive-tutorials/blob/main/notebooks/hyperactive_tutorial.ipynb

SimonBlanke avatar Aug 15 '24 09:08 SimonBlanke

The Introduction notebook can be viewed (and opened in binder) here: https://nbviewer.org/github/SimonBlanke/hyperactive-tutorial/blob/main/notebooks/hyperactive_tutorial.ipynb

SimonBlanke avatar Aug 15 '24 12:08 SimonBlanke

oh, I did not notice this other repo!

I am then wondering, why not add the nb to this repo, and link from docs and/or have a binder or colab link as well?

The notebooks do not need to go in the wheels, that keeps them small. Though I recognize that the git history and file size may be blown up having notebooks in this repo.

fkiraly avatar Aug 16 '24 10:08 fkiraly

Hello @fkiraly,

I keep the notebooks in a separate repo, because:

  • the notebook has a lot of code (in the "backend" of the notebook). This can often be more, that the source-code itself. Then the repo is classified as a ipython-notebook repo on github, even though it is a Python project.
  • changes in the notebook lead to a big code-diff. This distorts the number of added/removed lines in the contributors page
  • keeping the git history clean is always a good idea

I did not link the notebook to the readme/doc yet, because some changes were necessary.

SimonBlanke avatar Aug 16 '24 11:08 SimonBlanke

I am then wondering, why not add the nb to this repo, and link from docs and/or have a binder or colab link as well?

I will see if this is possible in a separate repo

SimonBlanke avatar Aug 16 '24 11:08 SimonBlanke

I listed github-, nb-viewer- and binder-links for the notebooks in the hyperactive-tutorials-repo

SimonBlanke avatar Jan 03 '25 07:01 SimonBlanke