API Reference#
This is the class and function reference of scikit-learn. 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 API, see Glossary of Common Terms and API Elements.
Object |
Description |
---|---|
Print useful debugging information |
|
Plot the elbow curve for different values of K in KMeans clustering. |
|
Generates the Cumulative Gains Plot from labels and scores/probabilities. |
|
Generate a Lift Curve from true labels and predicted probabilities. |
|
Generates the KS Statistic plot from labels and scores/probabilities. |
|
Plots PCA components’ explained variance ratios. (new in v0.2.2) |
|
Plots the 2-dimensional projection of PCA on a given dataset. |
|
Generates a plot of a sklearn model’s feature importances. |
|
Generates a plot of the train and test learning curves for a classifier. |
|
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: |
|
Plot calibration curves for a set of classifier probability estimates. |
|
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 ROC AUC curves from labels and predicted scores/probabilities. |
|
Generates the Precision-Recall AUC Curves from labels and predicted scores/probabilities. |
|
Plots silhouette analysis of clusters provided. |
|
Create a model_plots object |
|
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 |
|
Normalizing input |
|
Check if the input matches any of a complete list |
|
Combine multiple figures into a single image, save it (if specified), and return the combined figure. |
|
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) |
|
Compute the sigmoid function for the input array x. |
|
Compute the softmax function for each row of the input array x. |
|
Generates the ROC curves from labels and predicted scores/probabilities |
|
Generates the Precision Recall Curve from labels and probabilities |
|
This package/module is designed to be compatible with both Python 2 and Python 3. |
|
This package/module is designed to be compatible with both Python 2 and Python 3. |
|
This package/module is designed to be compatible with both Python 2 and Python 3. |