Skip to content

Instantly share code, notes, and snippets.

View yptheangel's full-sized avatar
Working from home

Choo Wilson yptheangel

Working from home
View GitHub Profile
@andfanilo
andfanilo / streamlit_shap.py
Created September 17, 2020 14:38
SHAP in Streamlit
import shap
import streamlit as st
import streamlit.components.v1 as components
import xgboost
@st.cache
def load_data():
return shap.datasets.boston()
def st_shap(plot, height=None):