Skip to content

Commit

Permalink
update docstring, only allow TS on Random Search
Browse files Browse the repository at this point in the history
  • Loading branch information
dengdifan committed Aug 17, 2021
1 parent a0c8950 commit 7c120c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions smac/optimizer/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,10 @@ def __init__(self,

r"""Do a Thompson Sampling for a given x over the best so far value as
acquisition value.
Thompson Sampling can only be used together with smac.optimizer.ei_optimization.RandomSearch, please do not
use smac.optimizer.ei_optimization.LocalAndSortedRandomSearch to optimize TS acquisition function!!!
:math:`TS(X) ~ \mathcal{N}(\mu(\mathbf{X}),\sigma(\mathbf{X}))'
Returns -TS(X) as the acquisition_function optimizer maximizes the acquisition value.
Parameters
Expand Down

0 comments on commit 7c120c4

Please sign in to comment.