I am trying to validate my ANN built on tabular data with XAI methods to improve transparency. But when I am using the lime method I am getting this error, and I am not able to debug it. Kindly help me as I am new in this field.
I want to make the model more transparent and explainable as i am trying to improve it s accuracy and shoe how the accuracy is improving using different ML models.
tIndexError Traceback (most recent call last)
<ipython-input-54-d845b9c549ee> in <module>
----> 1 exp = interpretor.explain_instance(
2 data_row=X_Test.iloc[5], ##new data
3 predict_fn=classifier.predict
4 )
5
1 frames
/usr/local/lib/python3.8/dist-packages/lime/lime_base.py in explain_instance_with_data(self, neighborhood_data, neighborhood_labels, distances, label, num_features, feature_selection, model_regressor)
180
181 weights = self.kernel_fn(distances)
--> 182 labels_column = neighborhood_labels[:, label]
183 used_features = self.feature_selection(neighborhood_data,
184 labels_column,
IndexError: index 1 is out of bounds for axis 1 with size 1 type here