scikitplot.api#
scikit-plots Functional API
User guide. See the Metric Perfomance section for further details.
Plot a PCA representation#
Visualizations for matrix decomposition algorithms.
The decomposition
module includes plots built specifically for
scikit-learn estimators that are used for dimensionality reduction e.g. PCA.
You can use your own estimators, but these plots assume specific properties shared by scikit-learn estimators. The specific requirements are documented per function.
User guide. See the Decomposition section for further details.
Plots the 2-dimensional projection of PCA on a given dataset. |
|
Plots PCA components' explained variance ratios. |
Plot Estimators (model) object instances#
Visualizations for model’s decision-making process.
The estimators
module includes plots for machine learning evaluation estimators
e.g. regressor, cluster, etc.
User guide. See the Estimators section for further details.
Generates a plot of a sklearn model's feature importances. |
|
Generates a plot of the train and test learning curves for a classifier. |
|
Plot the elbow curve for different values of K in KMeans clustering. |
Plot model evaluation metrics#
Visualizations for model’s performance-score metrics.
The metrics
module includes plots for machine learning evaluation metrics
e.g. confusion matrix, silhouette scores, etc.
User guide. See the Metrics section for further details.
Plot residuals and fit various distributions to assess their goodness of fit. |
|
Generates various evaluation plots for a classifier, including confusion matrix, precision-recall curve, and ROC curve. |
|
Generates a confusion matrix plot from predictions and true labels. |
|
Generates the Precision-Recall AUC Curves from labels and predicted scores/probabilities. |
|
Generates the ROC AUC curves from labels and predicted scores/probabilities. |
|
Plot calibration curves for a set of classifier probability estimates. |
|
Plots silhouette analysis of clusters provided. |
API Development Utilities#
Developer guide. See the Contribute section for further details.
Validates the labels passed into arguments such as |
|
Generate the data points necessary to plot the Cumulative Gain curve for binary classification tasks. |
|
Generate the data points necessary to plot the Kolmogorov-Smirnov (KS) curve for binary classification tasks. |
|
Validate the provided axes and figure or create new ones if needed. |
|
Combine multiple figures into a single image, save it (if specified), and return the combined figure. |
|
Save the current plot if the environment variable to save plots is enabled. |