candle.viz_utils.plot_histogram_error_per_sigma

candle.viz_utils.plot_histogram_error_per_sigma#

candle.viz_utils.plot_histogram_error_per_sigma(sigma, yerror, method=None, figprefix=None)#

Functionality to plot a 1D histogram of the distribution of computed errors (i.e. values of observed - predicted) observed for specific values of standard deviations computed. The range of standard deviations computed is split in xbins values and the 1D histograms of error distributions for the smallest six standard deviations are plotted. The plot generated is stored in a png file.

Parameters:
  • sigma (numpy array) – Array with standard deviations computed.

  • yerror (numpy array) – Array with errors computed (observed - predicted).

  • method (string) – Method used to comput the standard deviations (i.e. dropout, heteroscedastic, etc.).

  • figprefix (string) – String to prefix the filename to store the figure generated. A ‘_histogram_error_per_sigma.png’ string will be appended to the figprefix given.