Closed mlds2020 closed 4 years ago
I am unable to reproduce this error. The model attempts to perturb the input you currently have into new inputs and build a local model upon this. This method indicates that within the generated neighborhood data there are not enough instances of the target class to provide an explanation. This could be due to several factors:
However, seeing as it also happens on the IRIS dataset I assume none of these assumptions hold. Could you please provide me with a minimal working example that produces this error?
I literally copy-pasted the code from the README.md
I am trying to exactly recreate the example from the README for the Iris-dataset. Unforunately, when running
.explain_instance_domain(model.predict_proba, sample)
I get the following output:I get the same issue with every single other sample, and even every other dataset I try. What could be the issue?
Versions: Windows 10 Python: 3.7.4 Scikit-Learn: 0.21.3 Numpy: 1.18.2