plot_residuals_histogram¶
-
mastml.plot_helper.
plot_residuals_histogram
(y_true, y_pred, savepath, stats, title='residuals histogram', label='residuals')[source]¶ Method to calculate and plot the histogram of residuals from regression model
Args:
y_true: (numpy array), array of true y data values
y_pred: (numpy array), array of predicted y data values
savepath: (str), path to save the plotted precision-recall curve
stats: (dict), dict of training or testing statistics for a particular run
title: (str), title of residuals histogram
label: (str), label used for axis labeling
Returns:
None