Skip to content

Commit 7b44913

Browse files
update docstrings and workflow
1 parent 44d9882 commit 7b44913

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- name: Build distribution
2828
run: python setup.py sdist bdist_wheel
2929

30-
- name: Run examples
31-
run: pip install .&&find examples -maxdepth 2 -name "*.py" -exec python3 {} \;
30+
#- name: Run examples
31+
# run: pip install .&&find examples -maxdepth 2 -name "*.py" -exec python3 {} \;
3232

3333
- name: Publish to PyPI
3434
uses: pypa/gh-action-pypi-publish@release/v1

GPopt/GPOpt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class GPOpt:
4545
params_names: a list;
4646
names of the parameters of the objective function (optional)
4747
48-
surrogate_obj: a GaussianProcessRegressor object;
48+
surrogate_obj: an object;
4949
An ML model for estimating the uncertainty around the objective function
5050
5151
x_init:
@@ -459,7 +459,7 @@ def optimize(
459459
additional number of iterations for the optimizer (which has been run once)
460460
461461
abs_tol: a float;
462-
tolerance for convergence of the optimizer (early stopping based on expected improvement)
462+
tolerance for convergence of the optimizer (early stopping based on acquisition function)
463463
464464
min_budget: an integer (default is 50);
465465
minimum number of iterations before early stopping controlled by `abs_tol`
@@ -820,9 +820,9 @@ def optimize(
820820
# if self.max_acq.size > (self.n_init + self.n_iter * min_budget_pct):
821821
if len(self.max_acq) > min_budget:
822822

823-
diff_max_ei = np.abs(np.diff(np.asarray(self.max_acq)))
823+
diff_max_acq = np.abs(np.diff(np.asarray(self.max_acq)))
824824

825-
if diff_max_ei[-1] <= abs_tol:
825+
if diff_max_acq[-1] <= abs_tol:
826826

827827
iter_stop = len(self.max_acq) # index i starts at 0
828828

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from codecs import open
44
from os import path
55

6-
__version__ = "0.7.0"
6+
__version__ = "0.7.1"
77

88
subprocess.call("pip install -r requirements.txt", shell=True)
99

0 commit comments

Comments
 (0)