APIs Reference#
This is the class and function reference of scikit-plots. Please refer to the full user guide for further details, as the raw specifications of classes and functions may not be enough to give full guidelines on their uses. For reference on concepts repeated across the APIs, see scikit-plots Glossary.
Object |
Description |
---|---|
Context manager for global scikit-plots configuration. |
|
Retrieve current values for configuration set by |
|
Set global scikit-plots configuration. |
|
Show libraries and system information on which SciPy was built |
|
Print useful debugging information |
|
Open the online documentation search page |
|
Plots the 2-dimensional projection of PCA on a given dataset. |
|
Plots PCA components’ explained variance ratios. (new in v0.2.2) |
|
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 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. |
|
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) |
|
Validate the provided axes and figure or create new ones if needed. |
|
Combine multiple figures into a single image, |
|
Save the current plot if the environment variable to save plots is enabled. |
|
Compute the expit (sigmoid) function of the input value |
|
Compute the logarithm of the expit (sigmoid) function for the input value |
|
Compute the logit function, which is the inverse of the sigmoid function, for the input value |
|
py_print(message: str = ‘Hello, from Pybind11 C++!’) -> None |
|
Compute the sigmoid function for the input array |
|
Compute the softmax function. |
|
Compute the log of the sum of exponentials of input elements. |
|
Compute the logarithm of the softmax function. |
|
A legend for the abbreviations of decile table column names. |
|
Generates the Decile Table from labels and probabilities |
|
Generates the Decile-wise Lift Plot from labels and probabilities |
|
Generates the Decile based cumulative Lift Plot from labels and probabilities. |
|
Generates the Decile-wise Lift Plot from labels and probabilities |
|
Generates the KS Statistic Plot from labels and probabilities |
|
Generates a decile table and four plots: |
|
ModelPlotPy decile analysis. |
|
Plotting response curve |
|
Plotting cumulative response curve |
|
Plotting cumulative lift curve |
|
Plotting cumulative gains curve |
|
Plotting cumulative gains curve |
|
Plotting costs / revenue curve |
|
Plotting profit curve |
|
Plotting ROI curve |
|
A probability scale for matplotlib Axes. |
|
Probability, percentile, and quantile plots. |
|
Compute the plotting positions for a dataset. Heavily borrows from |
|
Fits a line to x-y data in various forms (linear, log, prob scales). |
|
int([x]) -> integer |
|
int([x]) -> integer |
|
int([x]) -> integer |
|
int([x]) -> integer |
|
int([x]) -> integer |
|
int([x]) -> integer |
|
int([x]) -> integer |
|
int([x]) -> integer |
|
A custom logging handler inherited from |
|
A custom logging formatter inherited from |
|
Logs a message at the CRITICAL log level. |
|
Logs a message at the DEBUG log level. |
|
Logs a message at the ERROR log level. |
|
Empty helper method. |
|
Logs a message at the FATAL - CRITICAL log level. |
|
Return how much logging output will be produced. |
|
Return SP (scikitplot) logger instance. |
|
Log ‘msg % args’ at level ‘level’ only if condition is fulfilled. |
|
Sets the threshold for what messages will be logged. |
|
Logs a message at the specified log level. |
|
Logs a message at the WARN - WARNING log level. |
|
Logs a message at the WARNING log level. |
|
A singleton logger class that provides a shared logger instance with customizable |
|
An instance of |
|
Bayesian blocks fitness for binned or unbinned events. |
|
Base class for bayesian blocks fitness functions. |
|
Bayesian blocks fitness for point measures. |
|
Bayesian blocks fitness for regular events. |
|
Compute optimal segmentation of data with Scargle’s Bayesian Blocks. |
|
Binomial proportion and confidence interval in bins of a continuous |
|
Binomial proportion confidence interval given k successes, |
|
Performs bootstrap resampling on numpy arrays. |
|
Construct a callable piecewise-linear CDF from a pair of arrays. |
|
Fold the weighted intervals to the interval (0,1). |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Histogram of a piecewise-constant weight function. |
|
Compute the length of overlap of two intervals. |
|
Compute the Kuiper statistic. |
|
Compute the false positive probability for the Kuiper statistic. |
|
Compute the Kuiper statistic to compare two samples. |
|
Calculate the median absolute deviation (MAD). |
|
Poisson parameter confidence interval given observed counts. |
|
Computes the signal to noise ratio for source being observed in the |
|
Calculate histogram bin edges like |
|
Return the optimal histogram bin width using the Freedman-Diaconis rule. |
|
Enhanced histogram function, providing adaptive binnings. |
|
Return the optimal histogram bin width using Knuth’s rule. |
|
Return the optimal histogram bin width using Scott’s rule. |
|
Computes the Akaike Information Criterion (AIC). |
|
Computes the Akaike Information Criterion assuming that the observations |
|
Computes the Bayesian Information Criterion (BIC) given the log of the |
|
Computes the Bayesian Information Criterion (BIC) assuming that the |
|
A Tweedie continuous random variable inherited |
|
An instance of |
|
Generates an architectural visualization for a given linear Keras |
|
Generates an architectural visualization for a given linear Keras |
|
A dummy layer to add spacing or other custom behavior. |
|
scikit-plots Factory API |
|
Generates the ROC curves from labels and predicted scores/probabilities |
|
Generates the Precision Recall Curve from labels and probabilities |