Skip to content

Commit

Permalink
maint doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dengdifan committed Jan 8, 2025
1 parent 3c2196a commit 5f3ae8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smac/main/config_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ def estimate_running_config_costs(
return self._model.predict_marginalized(X_running)[0]
elif estimation_strategy == 'sample':
# https://papers.nips.cc/paper_files/paper/2012/file/05311655a15b75fab86956663e1819cd-Paper.pdf
# since this requires a multi-variant gaussian distribution, we need to restrict the model needs to be a
# gaussian process
# since this requires a multi-variant gaussian distribution for the candidates, we need to restrict the
# model to be a gaussian process
assert isinstance(self._model, GaussianProcess), 'Sample based estimate strategy only allows ' \
'GP as surrogate model!'
return self._model.sample_functions(X_test=X_running, n_funcs=1)
Expand Down

0 comments on commit 5f3ae8e

Please sign in to comment.