Skip to content

Commit 3b34369

Browse files
committed
DOC: Update docs / examples
1 parent 374582c commit 3b34369

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sambo/_smbo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def ask(
293293
294294
acq_func : Callable, default ACQ_FUNCS['UCB']
295295
Acquisition function used to guide the selection of candidate solutions.
296-
By default, upper confidence bound (i.e. `mean + kappa * std` where `mean`
296+
By default, upper confidence bound (i.e. `mean - kappa * std` where `mean`
297297
and `std` are surrogate models' predicted results).
298298
299299
.. tip::
@@ -305,7 +305,7 @@ def ask(
305305
306306
kappa : float or list[float], default 0
307307
The upper/lower-confidence-bound parameter, used by `acq_func`, that
308-
balances exploration vs exploitation.
308+
balances exploration (<0) vs exploitation (>0).
309309
310310
Can also be an array of values to use sequentially for `n_cadidates`.
311311

sambo/_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def test_make_doc_plots(self):
386386
name = plot_func.__name__.removeprefix("plot_")
387387
with self.subTest(plot=name):
388388
try:
389-
fig = plot_func(*zip(BUILTIN_METHODS, results),
389+
fig = plot_func(*zip((f'method={m!r}' for m in BUILTIN_METHODS), results),
390390
**KWARGS.get(plot_func, {}))
391391
except TypeError:
392392
fig = plot_func(results[0], **KWARGS.get(plot_func, {})) # FIXME: plot (1, 3) subplots
@@ -419,7 +419,7 @@ def evaluate(x):
419419

420420
result = optimizer.run()
421421
results.append(result)
422-
named_results = [(f'estimator={e!r}', r) for e, r in zip(BUILTIN_ESTIMATORS, results)]
422+
named_results = [(f"method='smbo', estimator={e!r}", r) for e, r in zip(BUILTIN_ESTIMATORS, results)]
423423
fig = plot_convergence(*named_results, true_minimum=0)
424424
www_dir = Path(__file__).parent.parent / 'www'
425425
www_dir.mkdir(exist_ok=True)

0 commit comments

Comments
 (0)