Skip to content

Commit

Permalink
Update BayesOptSearch docs
Browse files Browse the repository at this point in the history
Signed-off-by: till-m <[email protected]>
  • Loading branch information
till-m committed Jan 15, 2025
1 parent 916f534 commit 829772a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/ray/tune/search/bayesopt/bayesopt_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,27 @@ def _dict_hash(config, precision):


class BayesOptSearch(Searcher):
"""Uses fmfn/BayesianOptimization to optimize hyperparameters.
"""Uses bayesian-optimization/BayesianOptimization to optimize hyperparameters.
fmfn/BayesianOptimization is a library for Bayesian Optimization. More
info can be found here: https://github.com/fmfn/BayesianOptimization.
bayesian-optimization/BayesianOptimization is a library for Bayesian Optimization. More
info can be found here: https://github.com/bayesian-optimization/BayesianOptimization.
This searcher will automatically filter out any NaN, inf or -inf
results.
You will need to install fmfn/BayesianOptimization via the following:
You will need to install bayesian-optimization/BayesianOptimization via the following:
.. code-block:: bash
pip install bayesian-optimization
pip install bayesian-optimization==1.4.3
Initializing this search algorithm with a ``space`` requires that it's
in the ``BayesianOptimization`` search space format. Otherwise, you
should instead pass in a Tune search space into ``Tuner(param_space=...)``,
and the search space will be automatically converted for you.
See this `BayesianOptimization example notebook
<https://github.com/fmfn/BayesianOptimization/blob/master/examples/advanced-tour.ipynb>`_
See this ``BayesianOptimization`` example notebook
<https://github.com/bayesian-optimization/BayesianOptimization/blob/33b99ec0a4fc51239e1a2fca3eaa37ad6debac5d/examples/advanced-tour.ipynb>`_
for an example.
Args:
Expand Down Expand Up @@ -154,7 +154,7 @@ def __init__(
):
assert byo is not None, (
"BayesOpt must be installed!. You can install BayesOpt with"
" the command: `pip install bayesian-optimization`."
" the command: `pip install bayesian-optimization==1.4.3`."
)
if mode:
assert mode in ["min", "max"], "`mode` must be 'min' or 'max'."
Expand Down

0 comments on commit 829772a

Please sign in to comment.