GPflow / GPflowOpt

Bayesian Optimization using GPflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add printing flag to bayesianoptimizer.optimize

javdrher opened this issue · comments

Add some feedback in optimize, e.g. print each iteration & current best.

We still want this or do we want to keep the output as lean as possible? As it would be very tempting to add an additional callback in BayesianOptimizer so the user can do more than printing when needed (make checkpoints, plots, etc.). Alternatively, a user could also call optimize for just one iteration then he has much more fine-grained control over the optimization loop.

I would personally really like some sort of "verbose" option in the optimizer. Without it, it is hard to understand sometimes how the MLL and hyperparameters are evolving.

@dgilford I agree, as BOptimizer is high-level it can provide some feedback.

At each sampling iteration the MLL of the current model + fmin can be printed:

iter #2, MLL: 1,23e2, fmin: ..., ...
iter #3, MLL: 1,23e1, fmin, ...

If you feel like it you can make a pull request that implements a simple printing statement. I'd be happy to accept it.

I'm working on adding a print statement. I'm just fighting python formatting and numpy arrays atm. Afterwards I'll make a PR