Sample Report

This notebook is an example of how a plotting recorder can be loaded separately from the program doing the optimisation for analysis.

The recorder can also be loaded from an autosave produced during optimisation (although care must be taken that the unfinished trials are removed)


In [ ]:
%matplotlib inline
%config InlineBackend.figure_format = 'svg'
import matplotlib.pyplot as plt
import seaborn as sns; sns.set() # prettify matplotlib

In [ ]:
import turbo as tb
import turbo.plotting as tp
import turbo.gui.jupyter as tg

In [ ]:
# larger plots if desired
#tg.jupyter_set_width('60%')
#tp.Config.fig_sizes = tp.Config.fig_sizes_by_width(14)

In [ ]:
rec = tp.PlottingRecorder.load_compressed('/tmp/turbo_autosave')

In [ ]:
tp.plot_overview(rec)

In [ ]:
tp.plot_surrogate_hyper_params_1D(rec, param_index=0);

In [ ]:
tp.plot_surrogate_hyper_params_2D(rec);

In [ ]:
tp.interactive_plot_trial_1D(rec);

In [ ]:
tp.plot_trial_1D(rec, param='x', trial_num=-1);

In [ ]: