Scikit-plot is an intuitive Python library (v0.3.7) that extends scikit-learn objects with easy-to-use plotting functionality. It aims to simplify the visualization of machine learning models and metrics, such as confusion matrices, ROC curves, and learning curves, with minimal boilerplate code. The library has had infrequent releases, with the latest stable version published in August 2018.
pip install scikit-plotVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to train a RandomForestClassifier on the digits dataset and then use scikit-plot to visualize its normalized confusion matrix with a single function call. It shows the typical import pattern and the use of a common metric plotting function.
Migrate to the Functions API, importing plotting functions directly from `skplt.metrics`, `skplt.estimators`, `skplt.clusterer`, or `skplt.decomposition`.
Replace `skplt.metrics.plot_precision_recall_curve` with `skplt.metrics.plot_precision_recall` and `skplt.metrics.plot_roc_curve` with `skplt.metrics.plot_roc`.
Update import statements to directly reference the new module paths, e.g., `from scikitplot.metrics import plot_confusion_matrix` (or `import scikitplot as skplt; skplt.metrics.plot_confusion_matrix`).
Upgrade to scikit-plot v0.3.2 or later, or manually specify a different colormap where applicable if using older versions.
Consider running `scikit-plot` within an environment that matches its original dependencies, typically Python 3.5-3.8 and a compatible `scikit-learn` version (e.g., <1.0). Alternatively, evaluate `scikit-plots` (note the plural), a potentially distinct and more recently maintained library with similar goals, if targeting newer Python environments.