Skip to content

Commit 677e351

Browse files
0.15.0
spotPython -> spotpython
1 parent 9445c25 commit 677e351

151 files changed

Lines changed: 1366 additions & 1366 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ build/
77
dist/
88
site/
99
Ignored/
10-
spotPython.code-workspace
11-
src/spotPython/_version.py
12-
src/spotPython/_version*.py
10+
spotpython.code-workspace
11+
src/spotpython/_version.py
12+
src/spotpython/_version*.py
1313
Figures.d/*
1414
notebooks/runs/
1515
notebook/runs/*
@@ -231,8 +231,8 @@ notebooks/data/MNIST/raw/train-images-idx3-ubyte.gz
231231
notebooks/data/MNIST/raw/train-labels-idx1-ubyte
232232
notebooks/data/MNIST/raw/train-labels-idx1-ubyte.gz
233233
notebooks/plot.png
234-
src/spotPython/lightning/logs/
235-
src/spotPython/lightning/MNIST/
234+
src/spotpython/lightning/logs/
235+
src/spotpython/lightning/MNIST/
236236
notebooks/lightning_logs/
237237
notebooks/figures/29-torch_bartz08-2_1min_5init_2023-06-25_08-51-47_importance.png
238238
notebooks/figures/29-torch_bartz08-2_1min_5init_2023-06-25_08-51-47_progress.png
@@ -293,33 +293,33 @@ notebooks/figures/31_maans05_2023-07-04_11-43-06_contour_6_8.png
293293
notebooks/figures/31_maans05_2023-07-04_11-43-06_importance.png
294294
notebooks/figures/31_maans05_2023-07-04_11-43-06_progress.png
295295
site/
296-
notebooks/data/spotPython/daten_sensitive.xlsx
297-
notebooks/data/spotPython/daten_sensitive.py
298-
notebooks/data/spotPython/daten_sensitive.csv
299-
notebooks/data/spotPython/data_sensitive.csv
300-
notebooks/data/spotPython/data_sensitive_rmNA.csv
296+
notebooks/data/spotpython/daten_sensitive.xlsx
297+
notebooks/data/spotpython/daten_sensitive.py
298+
notebooks/data/spotpython/daten_sensitive.csv
299+
notebooks/data/spotpython/data_sensitive.csv
300+
notebooks/data/spotpython/data_sensitive_rmNA.csv
301301
notebooks/runs_OLD/*
302302
runs/lightning_logs/*
303303
lightning_logs/*
304304
runs/*
305-
src/spotPython/data/pkldataset_intern.py
305+
src/spotpython/data/pkldataset_intern.py
306306
runs_OLD/*
307307
test_plot.png
308308
plot.png
309-
src/spotPython/data/people_test.csv
310-
src/spotPython/data/people_train.csv
311-
notebooks/00_spotPython_tests_files/libs/bootstrap/bootstrap-icons.css
312-
notebooks/00_spotPython_tests_files/libs/bootstrap/bootstrap-icons.woff
313-
notebooks/00_spotPython_tests_files/libs/bootstrap/bootstrap.min.css
314-
notebooks/00_spotPython_tests_files/libs/bootstrap/bootstrap.min.js
315-
notebooks/00_spotPython_tests_files/libs/clipboard/clipboard.min.js
316-
notebooks/00_spotPython_tests_files/libs/quarto-html/anchor.min.js
317-
notebooks/00_spotPython_tests_files/libs/quarto-html/popper.min.js
318-
notebooks/00_spotPython_tests_files/libs/quarto-html/quarto-syntax-highlighting.css
319-
notebooks/00_spotPython_tests_files/libs/quarto-html/quarto.js
320-
notebooks/00_spotPython_tests_files/libs/quarto-html/tippy.css
321-
notebooks/00_spotPython_tests_files/libs/quarto-html/tippy.umd.min.js
322-
notebooks/00_spotPython_tests.html
309+
src/spotpython/data/people_test.csv
310+
src/spotpython/data/people_train.csv
311+
notebooks/00_spotpython_tests_files/libs/bootstrap/bootstrap-icons.css
312+
notebooks/00_spotpython_tests_files/libs/bootstrap/bootstrap-icons.woff
313+
notebooks/00_spotpython_tests_files/libs/bootstrap/bootstrap.min.css
314+
notebooks/00_spotpython_tests_files/libs/bootstrap/bootstrap.min.js
315+
notebooks/00_spotpython_tests_files/libs/clipboard/clipboard.min.js
316+
notebooks/00_spotpython_tests_files/libs/quarto-html/anchor.min.js
317+
notebooks/00_spotpython_tests_files/libs/quarto-html/popper.min.js
318+
notebooks/00_spotpython_tests_files/libs/quarto-html/quarto-syntax-highlighting.css
319+
notebooks/00_spotpython_tests_files/libs/quarto-html/quarto.js
320+
notebooks/00_spotpython_tests_files/libs/quarto-html/tippy.css
321+
notebooks/00_spotpython_tests_files/libs/quarto-html/tippy.umd.min.js
322+
notebooks/00_spotpython_tests.html
323323
data.csv
324324
spot_00_experiment.pickle
325325
notebooks/progress.txt

MANIFEST.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include src/spotPython/data/*.csv
2-
include src/spotPython/data/*.json
3-
include src/spotPython/data/*.pkl
4-
include src/spotPython/hyperdict/*.json
1+
include src/spotpython/data/*.csv
2+
include src/spotpython/data/*.json
3+
include src/spotpython/data/*.pkl
4+
include src/spotpython/hyperdict/*.json

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@
22
<img height="200" src="img/spotLogo.png" alt="spot_logo">
33
</p>
44

5-
# spotPython
5+
# spotpython
66

77
Sequential Parameter Optimization in Python
88

9-
* spotPython is a Python version of the well-known hyperparameter tuner SPOT, which has been developed in the R programming environment for statistical analysis for over a decade [bart21i].
10-
* spotPython is a sequential model-based optimization (SMBO) method [BLP05].
9+
* spotpython is a Python version of the well-known hyperparameter tuner SPOT, which has been developed in the R programming environment for statistical analysis for over a decade [bart21i].
10+
* spotpython is a sequential model-based optimization (SMBO) method [BLP05].
1111

1212

1313
# Installation
1414

1515
* Installation can be done with `pip`:
1616

17-
`pip install spotPython`
17+
`pip install spotpython`
1818

19-
# spotPython Documentation
19+
# spotpython Documentation
2020

21-
* Hyperparameter-tuning Cookbook: A guide for scikit-learn, PyTorch, river, and spotPython. Available at [https://sequential-parameter-optimization.github.io/spotPython/](https://sequential-parameter-optimization.github.io/spotPython/).
21+
* Hyperparameter-tuning Cookbook: A guide for scikit-learn, PyTorch, river, and spotpython. Available at [https://sequential-parameter-optimization.github.io/spotpython/](https://sequential-parameter-optimization.github.io/spotpython/).
2222

23-
* [Bartz-Beielstein (2023). PyTorch Hyperparameter Tuning --- A Tutorial for spotPython (Working Paper)](https://arxiv.org/abs/2305.11930).
23+
* [Bartz-Beielstein (2023). PyTorch Hyperparameter Tuning --- A Tutorial for spotpython (Working Paper)](https://arxiv.org/abs/2305.11930).
2424

25-
> **Abstract**: The goal of hyperparameter tuning (or hyperparameter optimization) is to optimize the hyperparameters to improve the performance of the machine or deep learning model. spotPython ("Sequential Parameter Optimization Toolbox in Python") is the Python version of the well-known hyperparameter tuner SPOT, which has been developed in the R programming environment for statistical analysis for over a decade. PyTorch is an optimized tensor library for deep learning using GPUs and CPUs. This document shows how to integrate the spotPython hyperparameter tuner into the PyTorch training workflow. As an example, the results of the CIFAR10 image classifier are used. In addition to an introduction to spotPython, this tutorial also includes a brief comparison with Ray Tune, a Python library for running experiments and tuning hyperparameters. This comparison is based on the PyTorch hyperparameter tuning tutorial. The advantages and disadvantages of both approaches are discussed. We show that spotPython achieves similar or even better results while being more flexible and transparent than Ray Tune.
25+
> **Abstract**: The goal of hyperparameter tuning (or hyperparameter optimization) is to optimize the hyperparameters to improve the performance of the machine or deep learning model. spotpython ("Sequential Parameter Optimization Toolbox in Python") is the Python version of the well-known hyperparameter tuner SPOT, which has been developed in the R programming environment for statistical analysis for over a decade. PyTorch is an optimized tensor library for deep learning using GPUs and CPUs. This document shows how to integrate the spotpython hyperparameter tuner into the PyTorch training workflow. As an example, the results of the CIFAR10 image classifier are used. In addition to an introduction to spotpython, this tutorial also includes a brief comparison with Ray Tune, a Python library for running experiments and tuning hyperparameters. This comparison is based on the PyTorch hyperparameter tuning tutorial. The advantages and disadvantages of both approaches are discussed. We show that spotpython achieves similar or even better results while being more flexible and transparent than Ray Tune.
2626

2727

28-
# spotPython Features
28+
# spotpython Features
2929

30-
* Some of the advantages of `spotPython` are:
30+
* Some of the advantages of `spotpython` are:
3131

3232
- Numerical and categorical hyperparameters.
3333
- Powerful surrogate models.
@@ -42,7 +42,7 @@ Sequential Parameter Optimization in Python
4242
```bibtex
4343
@ARTICLE{bart23earxiv,
4444
author = {{Bartz-Beielstein}, Thomas},
45-
title = "{PyTorch Hyperparameter Tuning -- A Tutorial for spotPython}",
45+
title = "{PyTorch Hyperparameter Tuning -- A Tutorial for spotpython}",
4646
journal = {arXiv e-prints},
4747
keywords = {Computer Science - Machine Learning, Computer Science - Artificial Intelligence, Mathematics - Numerical Analysis, 68T07, A.1, B.8.0, G.1.6, G.4, I.2.8},
4848
year = 2023,
@@ -94,8 +94,8 @@ archivePrefix = {arXiv},
9494

9595
# Appendix
9696

97-
* This appendix contains some information on how to setup the development environment for spotPython.
98-
Information provided here is not required for the installation of spotPython.
97+
* This appendix contains some information on how to setup the development environment for spotpython.
98+
Information provided here is not required for the installation of spotpython.
9999

100100
## Styleguide
101101

@@ -140,7 +140,7 @@ Follow the Google Python Style Guide from [https://google.github.io/styleguide/p
140140
* `pyproject.toml`: see [pyproject.toml](./pyproject.toml).
141141
* Important: Follow the instructions from [https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html](https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html) for including data files (like *.csv, *.tar, etc.). These files can be specified in the following `MANIFEST` file:
142142
* `MANIFEST`: see [MANIFEST](MANIFEST.in). It describes the data files to be included, e.g.:
143-
* `include src/spotPython/data/*.rst`
143+
* `include src/spotpython/data/*.rst`
144144
* `LICENSE`: see [LICENSE](./LICENSE)
145145

146146
### Local Installation
@@ -150,7 +150,7 @@ Follow the Google Python Style Guide from [https://google.github.io/styleguide/p
150150
* `python3 -m pip install --upgrade build`
151151
* Start the package building process via: `python3 -m build`
152152
* This command should output a lot of text and once completed should generate two files in the `dist` directory.
153-
* You can use the local `spotPython*.tar.gz` file from the `dist` folder for your package installation with `pip`, e.g.;
154-
* `python3 -m pip install ./dist/spotPython-0.0.1.tar.gz`
153+
* You can use the local `spotpython*.tar.gz` file from the `dist` folder for your package installation with `pip`, e.g.;
154+
* `python3 -m pip install ./dist/spotpython-0.0.1.tar.gz`
155155

156156

docs/download.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Install spotPython
1+
# Install spotpython
22

3-
pip install spotPython
3+
pip install spotpython

docs/examples.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# SPOT Examples
22

3-
## Simple spotPython run
3+
## Simple spotpython run
44

55
```{python}
66
import numpy as np
7-
from spotPython.spot import spot
8-
from spotPython.fun.objectivefunctions import analytical
9-
from spotPython.utils.init import fun_control_init, design_control_init, surrogate_control_init
7+
from spotpython.spot import spot
8+
from spotpython.fun.objectivefunctions import analytical
9+
from spotpython.utils.init import fun_control_init, design_control_init, surrogate_control_init
1010
1111
fun = analytical().fun_branin
1212
fun_control = fun_control_init(lower = np.array([-5, 0]),
@@ -19,16 +19,16 @@ S.run()
1919
```
2020

2121
```raw
22-
spotPython tuning: 3.146824136952164 [######----] 55.00%
23-
spotPython tuning: 3.146824136952164 [######----] 60.00%
24-
spotPython tuning: 3.146824136952164 [######----] 65.00%
25-
spotPython tuning: 3.146824136952164 [#######---] 70.00%
26-
spotPython tuning: 1.1487233101571483 [########--] 75.00%
27-
spotPython tuning: 1.0236891516766402 [########--] 80.00%
28-
spotPython tuning: 0.41994270072214057 [########--] 85.00%
29-
spotPython tuning: 0.40193544341108023 [#########-] 90.00%
30-
spotPython tuning: 0.3991519598268951 [##########] 95.00%
31-
spotPython tuning: 0.3991519598268951 [##########] 100.00% Done...
22+
spotpython tuning: 3.146824136952164 [######----] 55.00%
23+
spotpython tuning: 3.146824136952164 [######----] 60.00%
24+
spotpython tuning: 3.146824136952164 [######----] 65.00%
25+
spotpython tuning: 3.146824136952164 [#######---] 70.00%
26+
spotpython tuning: 1.1487233101571483 [########--] 75.00%
27+
spotpython tuning: 1.0236891516766402 [########--] 80.00%
28+
spotpython tuning: 0.41994270072214057 [########--] 85.00%
29+
spotpython tuning: 0.40193544341108023 [#########-] 90.00%
30+
spotpython tuning: 0.3991519598268951 [##########] 95.00%
31+
spotpython tuning: 0.3991519598268951 [##########] 100.00% Done...
3232
```
3333

3434

@@ -47,14 +47,14 @@ x1: 2.285931113926263
4747
S.plot_progress(log_y=True)
4848
```
4949

50-
![spotPython progress plot](./images/plot-progress.png)
50+
![spotpython progress plot](./images/plot-progress.png)
5151

5252

5353
```{python}
5454
S.surrogate.plot()
5555
```
5656

57-
![spotPython surrogate plot](./images/surrogate-plot.png)
57+
![spotpython surrogate plot](./images/surrogate-plot.png)
5858

5959

6060
## Further Examples

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# spotPython
1+
# spotpython
22

33
## Surrogate Model Based Optimization and Hyperparameter Tuning in Python
44

5-
* Documentation for spotPython see [Hyperparameter Tuning Cookbook](https://sequential-parameter-optimization.github.io/Hyperparameter-Tuning-Cookbook/), a guide for scikit-learn, PyTorch, river, and spotPython.
6-
* News and updates related to spotPython see [SPOTSeven](https://www.spotseven.de/spot/)
5+
* Documentation for spotpython see [Hyperparameter Tuning Cookbook](https://sequential-parameter-optimization.github.io/Hyperparameter-Tuning-Cookbook/), a guide for scikit-learn, PyTorch, river, and spotpython.
6+
* News and updates related to spotpython see [SPOTSeven](https://www.spotseven.de/spot/)
77

88

mkdocs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
site_name: spotPython
2-
site_description: spotPython - Sequential Parameter Optimization Toolbox in Python
3-
site_url: https://github.com/sequential-parameter-optimization/spotPython
4-
repo_url: https://github.com/sequential-parameter-optimization/spotPython/tree/main
1+
site_name: spotpython
2+
site_description: spotpython - Sequential Parameter Optimization Toolbox in Python
3+
site_url: https://github.com/sequential-parameter-optimization/spotpython
4+
repo_url: https://github.com/sequential-parameter-optimization/spotpython/tree/main
55

66
# Copyright
77
copyright: Copyright &copy; 2004 - 2023
@@ -52,7 +52,7 @@ plugins:
5252
- search:
5353
- exclude:
5454
glob:
55-
- src/spotPython/_version.py
55+
- src/spotpython/_version.py
5656
- gen-files:
5757
scripts:
5858
- docs/gen_ref_pages.py
@@ -73,7 +73,7 @@ extra_javascript:
7373
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
7474
use_directory_urls: true
7575
watch:
76-
- src/spotPython
76+
- src/spotpython
7777
extra:
7878
social:
7979
- icon: fontawesome/brands/twitter

0 commit comments

Comments
 (0)