Skip to content

Commit

Permalink
Remove doubled priro floor
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasFehring committed Jan 13, 2025
1 parent 109901a commit 8c801a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smac/acquisition/function/prior_acquisition_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _compute_prior(self, X: np.ndarray) -> np.ndarray:
if self._discretize and isinstance(parameter, FloatHyperparameter):
assert self._discrete_bins_factor is not None
number_of_bins = int(np.ceil(self._discrete_bins_factor * self._decay_beta / self._iteration_number))
prior_values *= self._compute_discretized_pdf(parameter, X_col, number_of_bins) + self._prior_floor
prior_values *= self._compute_discretized_pdf(parameter, X_col, number_of_bins)
else:
prior_values *= parameter._pdf(X_col[:, np.newaxis])

Expand Down

0 comments on commit 8c801a8

Please sign in to comment.