Skip to content

RuntimeWarning: Optimization failed in gen_candidates_scipy / New set of initial conditions / OptimizationWarning failed within scipy.optimize.minimize #2470

Answered by Balandat
MoBurmeister asked this question in Q&A
Discussion options

You must be logged in to vote

Another question i came accross when playing around with my code: When should I be putting the model into model.eval() mode and what exact benefits does it have regarding the optimization loop in botorch? I know it from the use in pytorch, where it is helpful regarding the dropout and the batch normalization, but how much does the optimization in botorch benefit from it. For the potential use: I would call model.eval() before computing the acquisition function?

module.train() and module.eval() are not really things you need to worry about when using botorch (only when you want to change things deep in the botorch stack itself). As you know they are concepts from pytorch, which in gpytor…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MoBurmeister
Comment options

@Balandat
Comment options

Answer selected by MoBurmeister
@MoBurmeister
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants