0

I'm traying to use LIME to explain the results of a gradient boost model.

This is the data I have:

enter image description here

And the code I'm using:

explainer = lime.lime_tabular.LimeTabularExplainer(training_data = sample, 
                                                   mode = 'regression',
                                                   training_labels = y_train,
                                                   feature_names = ["x1","x2"])

And the error I´m getting:

enter image description here

TypeError: unhashable type: 'slice'
Luis Ramon Ramirez Rodriguez
  • 9,591
  • 27
  • 102
  • 181

1 Answers1

0

You probably should convert sample to a numpy array.

From the source code:

training_data: numpy 2d array

Hellen
  • 11
  • 1