Benchmarks (protopipe.benchmarks
)#
The protopipe.benchmarks
module is composed of 3 parts:
notebooks
, a folder containing benchmarking Jupyter notebooks divided by analysis stage,operations
, a sub-module containing functions to perform many different operations on data related to benchmarkingplot
, a sub-module containing plotting functionsutils
, a sub-module containing utility functions for the notebooksbook_template
, a folder containing the Jupyter Book template for a CTA analysis
Note
Much of what is contained in the sub-modules is the product of a long refactoring process of old material from the notebooks. Many things can be improved or imported by ctaplot/cta-benchmarks and ctapipe as the refactoring of the pipeline takes progress. Also, not all notebooks are exatcly the same in terms of global options, a notebook template will be added.
All benchmarks can be launched by means of the protopipe-BENCHMARK
script (Benchmarking).
This is the recommended method, as it integrates with the rest of the analysis interface.
API reference#
protopipe.benchmarks Package#
Functions#
|
Update data table with weights from requirement B-TEL-1010-Intensity-Resolution. |
|
Add a textbox containing statistical information. |
|
Calculate the average bias of charge resolution. |
|
Root Mean Square around 1 as proposed from comparison with CTA-MARS. |
|
Compute bias as a binned statistic. |
|
|
|
Compute a resolution as a binned statistic. |
|
Compute the weight from requirement B-TEL-1010-Intensity-Resolution. |
|
Returns a function f(x,y) that evaluates the lookup at a point. |
|
Returns DataStore with keepcols + score/target columns of model at the level-subarray-event. |
|
Get size of figure given a ratio and a scale. |
|
Log-Log data for single pixels spectrum. |
|
Load R0 and R1 waveforms for 1 telescope. |
|
Plot the correlation between reconstructed and true number of photoelectrons. |
|
|
|
Plot a bias. |
|
Plot mean of y in each bin in x with standard deviation as errorbars. |
|
Plot median of y in each bin in x with the central 1-sigma interval as errorbars. |
|
Plot feature distributions for several data set. |
|
|
|
Utility function to plot histogram |
|
Plot a profiled histogram. |
|
|
|
Plot a resolution. |
|
Plot ROC curve for a given set of model outputs and labels |
|
Produce a sensitivity plot. |
|
Prepare requirements data as a dictionary. |
|
Raise an exception as a statement. |
|
Convert True/False strings to booleans. |
Classes#
Class producing diagnostic plot for the BDT method |
|
|
Class to plot several diagnostic plot for classification. |
|
Base class for model diagnostics. |
|
Class to dynamically compute one-dimensional binned statistics. |
|
Class to plot several diagnostic plots for regression. |