plot_normalized_error¶
-
mastml.plot_helper.
plot_normalized_error
(y_true, y_pred, savepath, model, rf_error_method, rf_error_percentile, X=None, Xtrain=None, Xtest=None)[source]¶ Method to plot the normalized residual errors of a model prediction
Args:
y_true: (numpy array), array containing the true y data values
y_pred: (numpy array), array containing the predicted y data values
savepath: (str), path to save the plotted normalized error plot
model: (scikit-learn model/estimator object), a scikit-learn model object
X: (numpy array), array of X features
avg_stats: (dict), dict of calculated average metrics over all CV splits
Returns:
None