Closed HZeng3 closed 1 year ago
Hey Zeng,
i am kind of struggeling with the same problem. Did you find the reason for it?
best regards Konstantin
Hi Konstantin,
Most possibly this is because you have some NaN values in the data.
Bests, Zeng
Hi Zeng,
the same problem with lightgbm models, asserted no nan or inf values in features nor target, did you solved this?
best, Edgar
solved, feature with one unique value not allowed.
Main problem: My model is a XGBoost model that intake pd.dataframe as X, while lime.explainer.explain_instance needs a function as the second argument that intake np.array and output Y value. I tried create my own predict() function and change type of X there, but it didn't work. Below is my code and error. Any help would be appreciated!