def make_plots(self): """Generate scaling model component plot data.""" d = OrderedDict() combined_plots = make_combined_plots(self.data) if combined_plots: d.update(combined_plots) for key in sorted(self.data.keys()): scaling_model_plots = plot_scaling_models(self.data[key]) for plot in scaling_model_plots.values(): plot["layout"]["title"] += " (dataset %s)" % key for name, plot in six.iteritems(scaling_model_plots): d[name + "_" + str(key)] = plot graphs = {"scaling_model": d} return graphs
def make_scaling_model_plots(experiments): """Collect scaling model plots for html report.""" data = {i: e.scaling_model.to_dict() for i, e in enumerate(experiments)} d = OrderedDict() combined_plots = make_combined_plots(data) if combined_plots: d.update(combined_plots) for key in sorted(data.keys()): scaling_model_plots = plot_scaling_models(data[key]) for plot in scaling_model_plots.values(): plot["layout"]["title"] += f" (dataset {key})" for name, plot in scaling_model_plots.items(): d[name + "_" + str(key)] = plot graphs = {"scaling_model": d} return graphs