Skip to content

add methods of child learner to the DataSaver

Bas Nijholt requested to merge datasaver_improvement into master

After this MR the DataSaver will have all methods of its child learner.

Then you can just do:

learner = adaptive_tools.Learner2D(f, bounds=bounds)
datasaver = DataSaver(learner, arg_picker=itemgetter('G'))
runner = adaptive.Runner(datasaver)
runner.live_plot(update_interval=5) # instead of `runner.live_plot(update_interval=5, plotter=lambda l: l.learner.plot())`

Looking forward to hear from @jbweston why this might be a terrible idea 😉 😜

Merge request reports

Loading