Plot Benchmarks

class arline_benchmarks.reports.plot_benchmarks.BenchmarkPlotter(data, output_path, config)

Bases: object

Benchmark Report Plotter Class

Description:

Generates plots based on .csv benchmarking report file. Benchmark plotter methods are grouped according to the plot type (histogram, heatmap, radar etc):

  • Pipeline comparison histogram
  • Plots bar histogram for various metrics types (gate count, depth, …) for each pipeline stage
  • Scatter plots (for cluster analytics)
  • Heatmap plots for compression factor by feature type (gate count, depth, …)
  • Heatmap plots for gate composition (gate count distribution by gate type)
  • Radar plot for multi-factor comparison of compilation pipelines by compression feature factor
filter_condition(df, conditions)
plot()
plot_compression_heatmap(data, rows_feature, pipelines_settings, input_stage, output_stage, compression_feature, row_label, title=None)
plot_compression_radar(data, pipelines_settings, input_stage, output_stage, compression_features, baselines, title=None)
plot_compression_radar_grid(data, pipelines_settings, input_stage, output_stage, compression_features, title=None)
plot_gate_composition(data, stages_settings, title=None)
plot_pipelines_comparison_bars(data, y_col, pipelines_settings, stages_settings, baselines={}, title=None, yscale='linear')
plot_pipelines_compression_factor(data, pipelines_settings, input_stage, output_stage, compression_features, baselines, title=None)
plot_scatter(data, x_col, y_col, input_stage=None, output_stage=None, pipelines_settings={}, baselines={}, title=None)
arline_benchmarks.reports.plot_benchmarks.main()

Results Logger

class arline_benchmarks.reports.results_logger.CsvResultsLogger(filename, id_columns_names, columns_order=[])

Bases: object

Columns order in csv:

  • all id_columns_names columns
  • columns with names from columns_order in specified order
  • all other columns
add_results(line_id, data)
close()
arline_benchmarks.reports.results_logger.open_csv_results_logger(*args, **kwargs)