candle.viz_utils.plot_calibrated_std

candle.viz_utils.plot_calibrated_std#

candle.viz_utils.plot_calibrated_std(y_test, y_pred, std_calibrated, thresC, pred_name=None, figprefix=None)#

Functionality to plot values in testing set after calibration. An estimation of the lower-confidence samples is made. The plot generated is stored in a png file.

Parameters:
  • y_test (numpy array) – Array with (true) observed values.

  • y_pred (numpy array) – Array with predicted values.

  • std_calibrated (numpy array) – Array with standard deviation values after calibration.

  • thresC (float) – Threshold to label low confidence predictions (low confidence predictions are the ones with std > thresC).

  • pred_name (string) – Name of data colum or quantity predicted (e.g. growth, AUC, etc.).

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