reiinakano / scikit-plot

An intuitive library to add plotting functionality to scikit-learn objects.
MIT License
2.43k stars 285 forks source link

Update Calibration Curve Function, Fix Deprecation Warning, and Modify Version #122

Open celik-muhammed opened 2 months ago

celik-muhammed commented 2 months ago

This pull request introduces several updates and fixes to the codebase:

Remove Deprecation Warning for scipy.interp:

Addressed the DeprecationWarning for scipy.interp by replacing it with numpy.interp, as scipy.interp is deprecated and will be removed in SciPy 2.0.0. This change is intended to maintain compatibility with future versions of SciPy and prevent warnings in the code. Added pos_label Argument:

Modified the plot_calibration_curve function to include a new pos_label argument. This enhancement allows users to specify the positive label for binary classification directly, providing greater flexibility and compatibility with non-numeric labels in y_true. Updated setup.py Version:

Changed the version number in setup.py from 0.3.7 to 0.3.7.1. This version increment reflects the recent updates and ensures proper versioning. Updated .gitattributes and .gitignore:

Added entries to .gitattributes and .gitignore to ignore files specific to GitHub Codespaces contributing, ensuring a cleaner repository and reducing unnecessary file tracking.