metrics_figures

dyn.drawing.metrics_figures.csv_to_heatmap(data, events_list)
dyn.drawing.metrics_figures.draw_comparison_expected(data, config, function, label, precision=50000, num_bin=10, integer=True)

Plot histogram for given data and another according estimation from config file.

Data and function should be coherent (same attribute).

Parameters
  • data (list) – data to plot

  • function (string) – function name in api (calling function defined in config file with constraint checks)

  • precision (integer) – number of function calls to average the results. Greater give better approximation

dyn.drawing.metrics_figures.draw_comparison_groundtruth(data, gt_data, label, precision=50000, num_bin=10, integer=True)

Plot histogram for given data and another according estimation from config file.

Data and function should be coherent (same attribute).

Parameters
  • data (list) – data to plot

  • function (string) – function name in api (calling function defined in config file with constraint checks)

  • precision (integer) – number of function calls to average the results. Greater give better approximation

dyn.drawing.metrics_figures.draw_emigrants(data, label_comparison='compared to')
dyn.drawing.metrics_figures.draw_heatmap(data, diff=None, cmap=None, title='', x=16, y=3, ylabel=None, annot=False, vmin=None, vmax=None)
dyn.drawing.metrics_figures.draw_hist(data, variable, label, col=None, num_bin=None, integer=True)

Plot histogram

Parameters
  • data (list) – data to plot

  • integer (boolean) – display only integers ticks

dyn.drawing.metrics_figures.draw_members(data, cmap=<matplotlib.colors.ListedColormap object>, title='', center=None)
dyn.drawing.metrics_figures.draw_members_comparison(data, ground_truth)
dyn.drawing.metrics_figures.draw_snapshot_hist(data, variable, label, ground_truth=None)