candle.viz_utils.plot_2d_density_sigma_vs_error

candle.viz_utils.plot_2d_density_sigma_vs_error#

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

Functionality to plot a 2D histogram of the distribution of the standard deviations computed for the predictions vs. the computed errors (i.e. values of observed - predicted). 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 ‘_density_sigma_error.png’ string will be appended to the figprefix given.