SHAP KernelExplainer using PipeLine
SHAP KernelExplainer using PipeLine Question: I have a problem where I want to use pipeline (with OHE as preprocess and simple Linear Regression as model) with SHAP tools. As for the data, here are my data (I’m using my modified version of bike sharing dataset): bike_data=pd.read_csv("bike_outlier_clean.csv") bike_data[‘season’]=bike_data.season.astype(‘category’) bike_data[‘year’]=bike_data.year.astype(‘category’) bike_data[‘holiday’]=bike_data.holiday.astype(‘category’) bike_data[‘workingday’]=bike_data.workingday.astype(‘category’) bike_data[‘weather_condition’]=bike_data.weather_condition.astype(‘category’) bike_data[‘season’] = bike_data[‘season’].map({1:’Spring’, 2:’Summer’, …