Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/snehankekre/streamlit-yellowbrick

Streamlit component for the Yellowbrick visualization and model diagnostics library
https://github.com/snehankekre/streamlit-yellowbrick

data-visualization machine-learning matplotlib python scikit-learn streamlit visualization yellowbrick

Last synced: 2 months ago
JSON representation

Streamlit component for the Yellowbrick visualization and model diagnostics library

Awesome Lists containing this project

README

        

# streamlit-yellowbrick

[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://share.streamlit.io/snehankekre/streamlit-yellowbrick/examples/app.py)

This component provides a convenience function to display [Yellowbrick](https://www.scikit-yb.org/en/latest/index.html) [visualizers](https://www.scikit-yb.org/en/latest/api/index.html) in Streamlit.

## Installation

`pip install streamlit-yellowbrick`

## Example usage

```python
import streamlit as st
from streamlit_yellowbrick import st_yellowbrick

from yellowbrick.datasets import load_credit
from yellowbrick.features import PCA

# Specify the features of interest and the target
X, y = load_credit()
classes = ['account in default', 'current with bills']

visualizer = PCA(scale=True, classes=classes)
visualizer.fit_transform(X, y) # Fit the data to the visualizer
st_yellowbrick(visualizer) # Finalize and render the figure
```

![st_yellowbrick](https://github.com/snehankekre/streamlit-yellowbrick/blob/master/_static/example.png)