Hi guys, so im currently learning about SHAP values, and im going through a dataset from kaggle (https://www.kaggle.com/datasets/fedesoriano/stroke-prediction-dataset), its a stroke prediction dataset. I've sent the link to the colab (the code is too long to post here), the code is to calculate the SHAP values and ultimately plot a force plot and a summary plot to visualize feature importance when predicting the likelihood of a stroke. The problem is that there are no predictions from the SVM that result in a prediction of class 1, when someone has a stroke, the data is pretty imbalanced whereby there are 4000 rows of not having a stroke, and around 400-500 for those having a stroke, does anyone know where im going wrong? that would be much appreciated
shap_values[1] always results in an index out of bounds error
https://colab.research.google.com/drive/1RzHAx5UfJ2iGHX-ZekWmWUPkMH0bA6Dl?usp=sharing