Skip to content

Commit 159e4ab

Browse files
committed
adding theory to notebook + slide capabilities
1 parent 260029f commit 159e4ab

File tree

16 files changed

+460
-88
lines changed

16 files changed

+460
-88
lines changed

README.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# Tutorial on introduction to Bayesian optimization
2-
32
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
43

54
- [Download the repository](#download-the-repository)
65
- [Getting started](#getting-started)
76
- [Running the tutorial](#running-the-tutorial)
8-
- [Citing the tutorial](#citing-the-tutorial)
97

108
## Material for this tutorial
11-
129
- The theoretical lecture can be found here
13-
- The tutorial in slide form can be found [here](https://machine-learning-tutorial.github.io/bayesian-optimization)
10+
- The tutorial in slide form is here
1411

1512
## Download the repository
1613

@@ -23,14 +20,14 @@ To check if you have it installed, open your terminal and type:
2320
git --version
2421
```
2522

26-
#### Git installation in mac
23+
#### Git installation in MacOS
2724

2825
``` bash
2926
brew update
3027
brew install git
3128
```
3229

33-
#### Git installation in linux
30+
#### Git installation in Linux
3431

3532
In Ubuntu/Debian
3633

@@ -47,7 +44,7 @@ sudo yum install git
4744
Once you have Git installed open your terminal, go to your desired directory, and type:
4845

4946
``` bash
50-
git clone https://github.com/machine-learning-tutorial/bayesian-optimization.git
47+
git clone https://github.com/machine-learning-tutorial/bayesian-optimization
5148
cd bayesian-optimization
5249
```
5350

@@ -72,6 +69,14 @@ If you don't have conda installed already and want to use conda for environment
7269
- Create a conda env with `conda create -n bo-tutorial python=3.10`
7370
- Activate the environment with `conda activate bo-tutorial`
7471
- Install the required packages via `pip install -r requirements.txt`.
72+
- Run the following commands:
73+
74+
```bash
75+
python -m jupyter contrib nbextension install --user
76+
python -m jupyter nbextension enable varInspector/main
77+
```
78+
79+
- **After the tutorial** you can remove your environment with `conda remove -n bo-tutorial --all`
7580

7681
### Using venv only
7782

@@ -80,15 +85,17 @@ If you do not have conda installed:
8085
Alternatively, you can create the virtual env with `venv` in the standard library
8186

8287
```bash
83-
python -m venv nn-tutorial
88+
python -m venv bo-tutorial
8489
```
8590

86-
and activate the env with `source <venv>/bin/activate` (bash) or `C:> <venv>/Scripts/activate.bat` (Windows)
91+
and activate the env with $ source <venv>/bin/activate (bash) or C:> <venv>/Scripts/activate.bat (Windows)
8792

8893
Then, install the packages with pip within the activated environment
8994

9095
```bash
9196
python -m pip install -r requirements.txt
97+
python -m jupyter contrib nbextension install --user
98+
python -m jupyter nbextension enable varInspector/main
9299
```
93100

94101
Afterwards, you should be able to run the provided notebooks.
@@ -97,22 +104,21 @@ Afterwards, you should be able to run the provided notebooks.
97104

98105
After installing the package
99106

100-
You can start the jupyterlab in the terminal, and it will start a browser automatically
107+
You can start the jupyter notebook in the terminal, and it will start a browser automatically
101108

102109
```bash
103-
jupyter lab
110+
python -m jupyter notebook
104111
```
105112

106113
Alternatively, you can use supported Editor to run the jupyter notebooks, e.g. with VS Code.
107114

108-
## Citing the tutorial
115+
### Jupyter Notebooks
109116

110-
This tutorial is published in [Zenodo](https://zenodo.org/) with a DOI for each code release.
117+
Use `cmd+Enter` to execute one cell block
111118

119+
## Citing the tutorial
120+
This tutorial is registered [Zenodo](https://zenodo.org/), which means that there is a DOI for each code release.
112121
Please use this DOI when citing this code:
113122

114123
## Disclaimer
115-
116124
The content of this repository was developed by the [AI4Accelerators team](https://www.ibpt.kit.edu/AI4Accelerators.php) at the [Institute of Beam Physics and Technology (IBPT)](https://www.ibpt.kit.edu/), [Karlsruhe Institute of Technology](https://www.kit.edu/english/).
117-
118-
The ARES environment was adapted from the original version, developed by [Jan Kaiser](https://github.com/jank324).

img/acq_func.png

323 KB
Loading

img/bo.gif

12.2 KB
Loading

img/bo.png

164 KB
Loading

img/bo_1.jpg

25.6 KB
Loading

img/bo_code.png

191 KB
Loading

img/bo_procedure.png

313 KB
Loading

img/bo_procedure_2.png

264 KB
Loading

img/bo_steps.gif

239 KB
Loading

img/gp_1.png

61.7 KB
Loading

0 commit comments

Comments
 (0)