Skip to content

Commit

Permalink
update docstrings and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki committed Aug 4, 2024
1 parent 44d9882 commit 7b44913
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Build distribution
run: python setup.py sdist bdist_wheel

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

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
8 changes: 4 additions & 4 deletions GPopt/GPOpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class GPOpt:
params_names: a list;
names of the parameters of the objective function (optional)
surrogate_obj: a GaussianProcessRegressor object;
surrogate_obj: an object;
An ML model for estimating the uncertainty around the objective function
x_init:
Expand Down Expand Up @@ -459,7 +459,7 @@ def optimize(
additional number of iterations for the optimizer (which has been run once)
abs_tol: a float;
tolerance for convergence of the optimizer (early stopping based on expected improvement)
tolerance for convergence of the optimizer (early stopping based on acquisition function)
min_budget: an integer (default is 50);
minimum number of iterations before early stopping controlled by `abs_tol`
Expand Down Expand Up @@ -820,9 +820,9 @@ def optimize(
# if self.max_acq.size > (self.n_init + self.n_iter * min_budget_pct):
if len(self.max_acq) > min_budget:

diff_max_ei = np.abs(np.diff(np.asarray(self.max_acq)))
diff_max_acq = np.abs(np.diff(np.asarray(self.max_acq)))

if diff_max_ei[-1] <= abs_tol:
if diff_max_acq[-1] <= abs_tol:

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

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from codecs import open
from os import path

__version__ = "0.7.0"
__version__ = "0.7.1"

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

Expand Down

0 comments on commit 7b44913

Please sign in to comment.