Closed shashankumar2812 closed 5 years ago
I'm guessing X_train_undersample
is a dataframe instead of a numpy array.
Hi,
any luck?
@Raghavvraj, if your data is a pandas dataframe, just use my_df.values when creating the explainer object.
The 'X_train' is a dataframe and not an array.to convert from a dataframe to array before making the explainer try the following , it worked for me : X_train=X_train.values This will convert the dataframe into array and then pass it as an argument to the explainer.
I am trying to use LIME package for explaining predictive models. Got following error while running the following code. Can someone explain what is going wrong here?
Error: