I don’t really understand how to solve it. I try to correct my error and reboot but nothing works.
The following is the library etc :
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import streamlit as st
from sklearn.preprocessing import StandardScaler
import plotly.express as px
import matplotlib
from lightgbm_with_simple_features import *
import lightgbm
from lightgbm import LGBMClassifier
from sklearn.metrics import confusion_matrix
from PIL import Image
from sklearn.model_selection import train_test_split
import shap
import streamlit.components.v1 as components
import pickle
import plotly.graph_objects as go
import lime
import lime.lime_tabular
st.set_option(‘deprecation.showPyplotGlobalUse’, False)
import altair as alt
import re
Please don’t post code as images, it is quite useless. Please use markdown format instead.
Please post the content of the requirements.txt file or even better, provide a link to your public github repo.
I’ve followed your advice Franky1. So the problem seems to be the following things : i would like to integrate Lime and Shap graphics but when i run the associated functions, the deployment fail.
In fact Franky1, i’ve tried to be concise but maybe too much.
So I’ve just managed to deploy the dashboard ! the solution was to take only a sample of my data …
The initial data had a shape of (300000, 245). With a sample of 5% that works …
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.