yellowbrick


Nameyellowbrick JSON
Version 1.5 PyPI version JSON
download
home_pagehttp://scikit-yb.org/
SummaryA suite of visual analysis and diagnostic tools for machine learning.
upload_time2022-08-21 12:47:13
maintainerThe scikit-yb developers
docs_urlhttps://pythonhosted.org/yellowbrick/
authorThe scikit-yb developers
requires_python>=3.4, <4
licenseApache 2
keywords visualization machine learning scikit-learn matplotlib data science
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Yellowbrick

[![Visualizers](https://github.com/DistrictDataLabs/yellowbrick/raw/develop/docs/images/readme/banner.png)](https://www.scikit-yb.org/)

Yellowbrick is a suite of visual analysis and diagnostic tools designed to facilitate machine learning with scikit-learn. The library implements a new core API object, the `Visualizer` that is an scikit-learn estimator &mdash; an object that learns from data. Similar to transformers or models, visualizers learn from data by creating a visual representation of the model selection workflow.

Visualizer allow users to steer the model selection process, building intuition around feature engineering, algorithm selection and hyperparameter tuning. For instance, they can help diagnose common problems surrounding model complexity and bias, heteroscedasticity, underfit and overtraining, or class balance issues. By applying visualizers to the model selection workflow, Yellowbrick allows you to steer predictive models toward more successful results, faster.

The full documentation can be found at [scikit-yb.org](https://scikit-yb.org/) and includes a [Quick Start Guide](https://www.scikit-yb.org/en/latest/quickstart.html) for new users.

## Visualizers

Visualizers are estimators &mdash; objects that learn from data &mdash; whose primary objective is to create visualizations that allow insight into the model selection process. In scikit-learn terms, they can be similar to transformers when visualizing the data space or wrap a model estimator similar to how the `ModelCV` (e.g. [`RidgeCV`](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.RidgeCV.html), [`LassoCV`](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LassoCV.html)) methods work. The primary goal of Yellowbrick is to create a sensical API similar to scikit-learn. Some of our most popular visualizers include:

### Classification Visualization

- **Classification Report**: a visual classification report that displays a model's precision, recall, and F1 per-class scores as a heatmap
- **Confusion Matrix**: a heatmap view of the confusion matrix of pairs of classes in multi-class classification
- **Discrimination Threshold**: a visualization of the precision, recall, F1-score, and queue rate with respect to the discrimination threshold of a binary classifier
- **Precision-Recall Curve**: plot the precision vs recall scores for different probability thresholds
- **ROCAUC**: graph the receiver operator characteristic (ROC) and area under the curve (AUC)

### Clustering Visualization

- **Intercluster Distance Maps**: visualize the relative distance and size of clusters
- **KElbow Visualizer**: visualize cluster according to the specified scoring function, looking for the "elbow" in the curve.
- **Silhouette Visualizer**: select `k` by visualizing the silhouette coefficient scores of each cluster in a single model

### Feature Visualization

- **Manifold Visualization**: high-dimensional visualization with manifold learning
- **Parallel Coordinates**: horizontal visualization of instances
- **PCA Projection**: projection of instances based on principal components
- **RadViz Visualizer**: separation of instances around a circular plot
- **Rank Features**: single or pairwise ranking of features to detect relationships

### Model Selection Visualization

- **Cross Validation Scores**: display the cross-validated scores as a bar chart with the average score plotted as a horizontal line
- **Feature Importances**: rank features based on their in-model performance
- **Learning Curve**: show if a model might benefit from more data or less complexity
- **Recursive Feature Elimination**: find the best subset of features based on importance
- **Validation Curve**: tune a model with respect to a single hyperparameter

### Regression Visualization

- **Alpha Selection**: show how the choice of alpha influences regularization
- **Cook's Distance**: show the influence of instances on linear regression
- **Prediction Error Plots**: find model breakdowns along the domain of the target
- **Residuals Plot**: show the difference in residuals of training and test data

### Target Visualization

- **Balanced Binning Reference**: generate a histogram with vertical lines showing the recommended value point to the bin data into evenly distributed bins
- **Class Balance**: show the relationship of the support for each class in both the training and test data by displaying how frequently each class occurs as a bar graph the frequency of the classes' representation in the dataset
- **Feature Correlation**: visualize the correlation between the dependent variables and the target

### Text Visualization

- **Dispersion Plot**: visualize how key terms are dispersed throughout a corpus
- **PosTag Visualizer**: plot the counts of different parts-of-speech throughout a tagged corpus
- **Token Frequency Distribution**: visualize the frequency distribution of terms in the corpus
- **t-SNE Corpus Visualization**: uses stochastic neighbor embedding to project documents
- **UMAP Corpus Visualization**: plot similar documents closer together to discover clusters

... and more! Yellowbrick is adding new visualizers all the time so be sure to check out our [examples gallery]https://github.com/DistrictDataLabs/yellowbrick/tree/develop/examples) &mdash; or even the [develop](https://github.com/districtdatalabs/yellowbrick/tree/develop) branch &mdash; and feel free to contribute your ideas for new Visualizers!

## Affiliations
[![District Data Labs](https://github.com/DistrictDataLabs/yellowbrick/raw/develop/docs/images/readme/affiliates_ddl.png)](https://www.districtdatalabs.com/) [![NumFOCUS Affiliated Project](https://github.com/DistrictDataLabs/yellowbrick/raw/develop/docs/images/readme/affiliates_numfocus.png)](https://numfocus.org/)



            

Raw data

            {
    "_id": null,
    "home_page": "http://scikit-yb.org/",
    "name": "yellowbrick",
    "maintainer": "The scikit-yb developers",
    "docs_url": "https://pythonhosted.org/yellowbrick/",
    "requires_python": ">=3.4, <4",
    "maintainer_email": "yellowbrick@googlegroups.com",
    "keywords": "visualization,machine learning,scikit-learn,matplotlib,data science",
    "author": "The scikit-yb developers",
    "author_email": "yellowbrick@googlegroups.com",
    "download_url": "https://files.pythonhosted.org/packages/76/6c/91ae3fcc99173f3b90642eb8b9eb6faac4e21dba6020566c751535e72554/yellowbrick-1.5.tar.gz",
    "platform": null,
    "description": "# Yellowbrick\n\n[![Visualizers](https://github.com/DistrictDataLabs/yellowbrick/raw/develop/docs/images/readme/banner.png)](https://www.scikit-yb.org/)\n\nYellowbrick is a suite of visual analysis and diagnostic tools designed to facilitate machine learning with scikit-learn. The library implements a new core API object, the `Visualizer` that is an scikit-learn estimator &mdash; an object that learns from data. Similar to transformers or models, visualizers learn from data by creating a visual representation of the model selection workflow.\n\nVisualizer allow users to steer the model selection process, building intuition around feature engineering, algorithm selection and hyperparameter tuning. For instance, they can help diagnose common problems surrounding model complexity and bias, heteroscedasticity, underfit and overtraining, or class balance issues. By applying visualizers to the model selection workflow, Yellowbrick allows you to steer predictive models toward more successful results, faster.\n\nThe full documentation can be found at [scikit-yb.org](https://scikit-yb.org/) and includes a [Quick Start Guide](https://www.scikit-yb.org/en/latest/quickstart.html) for new users.\n\n## Visualizers\n\nVisualizers are estimators &mdash; objects that learn from data &mdash; whose primary objective is to create visualizations that allow insight into the model selection process. In scikit-learn terms, they can be similar to transformers when visualizing the data space or wrap a model estimator similar to how the `ModelCV` (e.g. [`RidgeCV`](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.RidgeCV.html), [`LassoCV`](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LassoCV.html)) methods work. The primary goal of Yellowbrick is to create a sensical API similar to scikit-learn. Some of our most popular visualizers include:\n\n### Classification Visualization\n\n- **Classification Report**: a visual classification report that displays a model's precision, recall, and F1 per-class scores as a heatmap\n- **Confusion Matrix**: a heatmap view of the confusion matrix of pairs of classes in multi-class classification\n- **Discrimination Threshold**: a visualization of the precision, recall, F1-score, and queue rate with respect to the discrimination threshold of a binary classifier\n- **Precision-Recall Curve**: plot the precision vs recall scores for different probability thresholds\n- **ROCAUC**: graph the receiver operator characteristic (ROC) and area under the curve (AUC)\n\n### Clustering Visualization\n\n- **Intercluster Distance Maps**: visualize the relative distance and size of clusters\n- **KElbow Visualizer**: visualize cluster according to the specified scoring function, looking for the \"elbow\" in the curve.\n- **Silhouette Visualizer**: select `k` by visualizing the silhouette coefficient scores of each cluster in a single model\n\n### Feature Visualization\n\n- **Manifold Visualization**: high-dimensional visualization with manifold learning\n- **Parallel Coordinates**: horizontal visualization of instances\n- **PCA Projection**: projection of instances based on principal components\n- **RadViz Visualizer**: separation of instances around a circular plot\n- **Rank Features**: single or pairwise ranking of features to detect relationships\n\n### Model Selection Visualization\n\n- **Cross Validation Scores**: display the cross-validated scores as a bar chart with the average score plotted as a horizontal line\n- **Feature Importances**: rank features based on their in-model performance\n- **Learning Curve**: show if a model might benefit from more data or less complexity\n- **Recursive Feature Elimination**: find the best subset of features based on importance\n- **Validation Curve**: tune a model with respect to a single hyperparameter\n\n### Regression Visualization\n\n- **Alpha Selection**: show how the choice of alpha influences regularization\n- **Cook's Distance**: show the influence of instances on linear regression\n- **Prediction Error Plots**: find model breakdowns along the domain of the target\n- **Residuals Plot**: show the difference in residuals of training and test data\n\n### Target Visualization\n\n- **Balanced Binning Reference**: generate a histogram with vertical lines showing the recommended value point to the bin data into evenly distributed bins\n- **Class Balance**: show the relationship of the support for each class in both the training and test data by displaying how frequently each class occurs as a bar graph the frequency of the classes' representation in the dataset\n- **Feature Correlation**: visualize the correlation between the dependent variables and the target\n\n### Text Visualization\n\n- **Dispersion Plot**: visualize how key terms are dispersed throughout a corpus\n- **PosTag Visualizer**: plot the counts of different parts-of-speech throughout a tagged corpus\n- **Token Frequency Distribution**: visualize the frequency distribution of terms in the corpus\n- **t-SNE Corpus Visualization**: uses stochastic neighbor embedding to project documents\n- **UMAP Corpus Visualization**: plot similar documents closer together to discover clusters\n\n... and more! Yellowbrick is adding new visualizers all the time so be sure to check out our [examples gallery]https://github.com/DistrictDataLabs/yellowbrick/tree/develop/examples) &mdash; or even the [develop](https://github.com/districtdatalabs/yellowbrick/tree/develop) branch &mdash; and feel free to contribute your ideas for new Visualizers!\n\n## Affiliations\n[![District Data Labs](https://github.com/DistrictDataLabs/yellowbrick/raw/develop/docs/images/readme/affiliates_ddl.png)](https://www.districtdatalabs.com/) [![NumFOCUS Affiliated Project](https://github.com/DistrictDataLabs/yellowbrick/raw/develop/docs/images/readme/affiliates_numfocus.png)](https://numfocus.org/)\n\n\n",
    "bugtrack_url": null,
    "license": "Apache 2",
    "summary": "A suite of visual analysis and diagnostic tools for machine learning.",
    "version": "1.5",
    "split_keywords": [
        "visualization",
        "machine learning",
        "scikit-learn",
        "matplotlib",
        "data science"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "cf259a17d0cfd8e040fb6e6d3c4fcbfd",
                "sha256": "4bb2895cecf94a0e736398bbac6c5d72032ba3ff2273f49df660b14ef419305d"
            },
            "downloads": -1,
            "filename": "yellowbrick-1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cf259a17d0cfd8e040fb6e6d3c4fcbfd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.4, <4",
            "size": 282603,
            "upload_time": "2022-08-21T12:47:09",
            "upload_time_iso_8601": "2022-08-21T12:47:09.456180Z",
            "url": "https://files.pythonhosted.org/packages/06/35/c7d44bb541c06bc41b3239b27af79ea0ecc7dbb156ee1335576f99c58b91/yellowbrick-1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "7d1e79737e3f2aae9ad6e5d993849448",
                "sha256": "99a6336dd2e7ce586a8cde67966b79c51b479d3759f3c083d7e19ffe949f6076"
            },
            "downloads": -1,
            "filename": "yellowbrick-1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "7d1e79737e3f2aae9ad6e5d993849448",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.4, <4",
            "size": 20011001,
            "upload_time": "2022-08-21T12:47:13",
            "upload_time_iso_8601": "2022-08-21T12:47:13.447591Z",
            "url": "https://files.pythonhosted.org/packages/76/6c/91ae3fcc99173f3b90642eb8b9eb6faac4e21dba6020566c751535e72554/yellowbrick-1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-08-21 12:47:13",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "yellowbrick"
}
        
Elapsed time: 0.02567s