scikitplot.kds#

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 kds module includes plots for machine learning evaluation decile analysis e.g. Gain, Lift and Decile charts, etc.

References

[1] tensorbored/kds.py#

User guide. See the KDS section for further details.

print_labels

A legend for the abbreviations of decile table column names.

decile_table

Generates the Decile Table from labels and probabilities

plot_cumulative_gain

Generates the Decile-wise Lift Plot from labels and probabilities

plot_lift

Generates the Decile based cumulative Lift Plot from labels and probabilities

plot_lift_decile_wise

Generates the Decile-wise Lift Plot from labels and probabilities

plot_ks_statistic

Generates the KS Statistic Plot from labels and probabilities

report

Generates a decile table and four plots: - Lift plot_lift - Lift@Decile plot_lift_decile_wise - Gain plot_cumulative_gain - KS plot_ks_statistic