I have encountered an error in Python version of the package. It happend while using data which was numpy arrays - X_train being a matrix and y_train a vector. When trying to call method predict_parts on the explainer I have gotten following error:
Clearly the X_train[0, :] is a numpy.ndarray while the error message suggests it is not. The model used was ExtraTreesClassifier from sklearn.ensemble.
I have tried the same with data being pandas dataframes and it worked just fine:
I have encountered an error in Python version of the package. It happend while using data which was numpy arrays -
X_train
being a matrix andy_train
a vector. When trying to call methodpredict_parts
on the explainer I have gotten following error:Clearly the
X_train[0, :]
is anumpy.ndarray
while the error message suggests it is not. The model used wasExtraTreesClassifier
fromsklearn.ensemble
.I have tried the same with data being pandas dataframes and it worked just fine: