Skip to content

snehankekre/streamlit-yellowbrick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

streamlit-yellowbrick

Streamlit App

This component provides a convenience function to display Yellowbrick visualizers in Streamlit.

Installation

pip install streamlit-yellowbrick

Example usage

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