scikitplot.modelplotpy#

This package/module is designed to be compatible with both Python 2 and Python 3. The imports below ensure consistent behavior across different Python versions by enforcing Python 3-like behavior in Python 2.

The modelplotpy module includes plots for machine learning evaluation decile analysis e.g. Gain, Lift and Decile charts, etc.

References

[1] modelplot/modelplotpy [2] https://modelplot.github.io/intro_modelplotpy.html

User guide. See the ModelPlotPy section for further details.

ModelPlotPy

Create a model_plots object

plot_response

Plotting response curve

plot_cumresponse

Plotting cumulative response curve

plot_cumlift

Plotting cumulative lift curve

plot_cumgains

Plotting cumulative gains curve

plot_all

Plotting cumulative gains curve

plot_costsrevs

Plotting costs / revenue curve

plot_profit

Plotting profit curve

plot_roi

Plotting ROI curve

range01

Normalizing input

check_input

Check if the input matches any of a complete list