Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iteration_number in PriorAcquisitionFunction() #1076

Open
RoseGH20 opened this issue Oct 4, 2023 · 1 comment
Open

iteration_number in PriorAcquisitionFunction() #1076

RoseGH20 opened this issue Oct 4, 2023 · 1 comment
Labels

Comments

@RoseGH20
Copy link

RoseGH20 commented Oct 4, 2023

Description

I am using PriorAcquisitionFunction. Based on https://arxiv.org/pdf/2204.11051.pdf, the weight of the user-defined prior is decreased exponentially after each iteration/ optimization step. I noticed that the variable self._iteration_number in class PriorAcquisitionFunction is updated each time the acquisition function is used. However, because the acquisition function is not used at every step (multiple configurations are proposed after evaluating the acquisition function), self._iteration_number is lower than the actual number of function evaluations which keep the weight of the prior high. I am wondering if this is the desired behavior or if for this class, self._iteration_number should be equal to the number of evaluation rather than the number of time the acquisition function was used.

Steps/Code to Reproduce

af = PriorAcquisitionFunction(acquisition_function=EI(), decay_beta=5)
scenario = Scenario(task.configspace, n_trials=n_iters, seed= s)

intensifier = BBFacade.get_intensifier(scenario, max_config_calls=1)
smac = BBFacade(scenario, task.train, acquisition_function=af, overwrite=True, intensifier=intensifier)
incumbent = smac.optimize()

Expected Results (?)

AF evaluations (self._iteration_number=1)
X configurations proposed
AF evaluations (self._iteration_number=1+X)
Y configurations proposed
AF evaluations (self._iteration_number=1+X+Y)

Actual Results

AF evaluations (self._iteration_number=1)
X configurations proposed
AF evaluations (self._iteration_number=2)
Y configurations proposed
AF evaluations (self._iteration_number=3)

Versions

Version 2.0.2

@alexandertornede
Copy link
Contributor

Hi!

Thanks for reporting this, we will be looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants