plot_cumulative_normalized_error

mastml.plot_helper.plot_cumulative_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 cumulative 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 cumulative 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