Skip to content

Commit 3df1f31

Browse files
authored
Merge pull request #5 from jungtaekkim/0.2.0
0.2.0
2 parents 5eaf53d + dbb1196 commit 3df1f31

Some content is hidden

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

47 files changed

+327
-250
lines changed

.github/workflows/pytest.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,22 @@ jobs:
77
strategy:
88
matrix:
99
python-version:
10-
- '3.6'
1110
- '3.7'
1211
- '3.8'
1312
- '3.9'
1413
- '3.10'
1514
- '3.11'
16-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-latest
1716
steps:
1817
- uses: actions/checkout@v2
1918
- uses: actions/setup-python@v2
2019
with:
2120
python-version: ${{ matrix.python-version }}
22-
- name: Install dependencies
21+
- name: Install this project and its dependencies
2322
run: |
24-
python -m pip install --upgrade pip setuptools
25-
pip install pytest
26-
pip install scipy
23+
pip install --upgrade pip
24+
pip install .[dev]
25+
pip list
2726
- name: Run pytest
2827
run: |
29-
pip install .
3028
pytest

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-2023 Jungtaek Kim
3+
Copyright (c) 2019-2024 Jungtaek Kim
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<p align="center">
2-
<img src="https://github.com/jungtaekkim/bayeso/blob/main/docs/_static/assets/logo_bayeso_capitalized.svg" width="400" />
2+
<img src="https://raw.githubusercontent.com/jungtaekkim/bayeso/main/docs/_static/assets/logo_bayeso_capitalized.svg" width="400" />
33
</p>
44

55
# BayesO Benchmarks: Benchmark Functions for Bayesian Optimization
6-
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7577331.svg)](https://doi.org/10.5281/zenodo.7577331)
6+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7577330.svg)](https://doi.org/10.5281/zenodo.7577330)
77
[![Build Status](https://github.com/jungtaekkim/bayeso-benchmarks/actions/workflows/pytest.yml/badge.svg)](https://github.com/jungtaekkim/bayeso-benchmarks/actions/workflows/pytest.yml)
88
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
99

@@ -21,42 +21,36 @@ You can choose one of three installation options.
2121
To install the released version in PyPI repository, command it.
2222

2323
```shell
24-
$ pip install bayeso-benchmarks
24+
pip install bayeso-benchmarks
2525
```
2626

2727
* Using source code (for developer installation)
2828

29-
To install `bayeso-benchmarks` from source code, command
29+
To install `bayeso-benchmarks` from source code, command the following in the `bayeso-benchmarks` root.
3030

3131
```shell
32-
$ pip install .
32+
pip install .
3333
```
34-
in the `bayeso-benchmarks` root.
3534

3635
* Using source code (for editable development mode)
3736

38-
To use editable development mode, command
37+
To use editable development mode, command the following in the `bayeso-benchmarks` root.
3938

4039
```shell
41-
$ pip install -r requirements.txt
42-
$ python setup.py develop
40+
pip install -e .
4341
```
44-
in the `bayeso-benchmarks` root.
42+
43+
If you want to install the packages required for development, you can simply add `[dev]`.
44+
For example, `pip install .[dev]` or `pip install -e .[dev]`.
4545

4646
* Uninstallation
4747

4848
If you would like to uninstall `bayeso-benchmarks`, command it.
4949

5050
```shell
51-
$ pip uninstall bayeso-benchmarks
51+
pip uninstall bayeso-benchmarks
5252
```
5353

54-
## Required Packages
55-
Mandatory pacakges are inlcuded in `requirements.txt`.
56-
The following `requirements` files include the package list, the purpose of which is described as follows.
57-
58-
* `requirements-dev.txt`: It is for developing the `bayeso-benchmarks` package.
59-
6054
## Simple Example
6155
A simple example on Branin function is shown below.
6256
```python
@@ -71,5 +65,17 @@ Y = obj_fun.output(X)
7165
Y_noise = obj_fun.output_gaussian_noise(X)
7266
```
7367

68+
## Citation
69+
```
70+
@misc{KimJ2023software,
71+
author={Kim, Jungtaek},
72+
title={{BayesO Benchmarks}: Benchmark Functions for {Bayesian} Optimization},
73+
doi={10.5281/zenodo.7577330},
74+
url={https://github.com/jungtaekkim/bayeso-benchmarks},
75+
howpublished={\url{https://doi.org/10.5281/zenodo.7577330}},
76+
year={2023}
77+
}
78+
```
79+
7480
## License
7581
[MIT License](LICENSE)

bayeso_benchmarks/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#
2-
# author: Jungtaek Kim ([email protected])
3-
# last updated: January 6, 2023
2+
# author: Jungtaek Kim ([email protected])
3+
# last updated: January 27, 2023
44
#
55

66

7-
__version__ = '0.1.7'
7+
__version__ = '0.2.0'
88

99

1010
from bayeso_benchmarks.inf_dim_ackley import Ackley

bayeso_benchmarks/benchmark_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# author: Jungtaek Kim ([email protected])
2+
# author: Jungtaek Kim ([email protected])
33
# last updated: December 13, 2022
44
#
55

bayeso_benchmarks/four_dim_colville.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,4 @@ def __init__(self, seed=None):
4242
global_minimum = 0.0
4343
function = lambda bx: fun_target(bx, dim_bx)
4444

45-
try:
46-
super().__init__(dim_bx, bounds, global_minimizers, global_minimum, function, seed=seed)
47-
except:
48-
super(Colville, self).__init__(dim_bx, bounds, global_minimizers, global_minimum, function, seed=seed)
45+
super().__init__(dim_bx, bounds, global_minimizers, global_minimum, function, seed=seed)

bayeso_benchmarks/inf_dim_ackley.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,4 @@ def __init__(self, dim_problem, seed=None):
4040

4141
function = lambda bx: fun_target(bx, dim_problem)
4242

43-
try:
44-
super().__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)
45-
except:
46-
super(Ackley, self).__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)
43+
super().__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)

bayeso_benchmarks/inf_dim_cosines.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,4 @@ def __init__(self, dim_problem, seed=None):
3333

3434
function = lambda bx: fun_target(bx, dim_problem)
3535

36-
try:
37-
super().__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)
38-
except:
39-
super(Cosines, self).__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)
36+
super().__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)

bayeso_benchmarks/inf_dim_griewank.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,4 @@ def __init__(self, dim_problem, seed=None):
3939

4040
function = lambda bx: fun_target(bx, dim_problem)
4141

42-
try:
43-
super().__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)
44-
except:
45-
super(Griewank, self).__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)
42+
super().__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)

bayeso_benchmarks/inf_dim_levy.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,4 @@ def __init__(self, dim_problem, seed=None):
4545

4646
function = lambda bx: fun_target(bx, dim_problem)
4747

48-
try:
49-
super().__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)
50-
except:
51-
super(Levy, self).__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)
48+
super().__init__(dim_bx, bounds, global_minimizers, global_minimum, function, dim_problem=dim_problem, seed=seed)

0 commit comments

Comments
 (0)