Error TypeError: ‘numpy.ndarray’ object is not callable using explain_instance for LIME
I would like to expain Logistic regression model with LIME (mode as classification) but I got the error while using the explain_instance:
explainer_LIME = lime.lime_tabular.LimeTabularExplainer(X_train.values, feature_names=X_train.columns.values.tolist(), class_names=['0','1'], verbose=True, mode='classification' explainer_LIME.explain_instance(X_test.values[0], logreg.predict_proba(X_test)[:,:], num_features=9)