Open 123Kudo opened 2 years ago
Situation:
def predict_fn(x): p = gbm.predict(x).reshape(-1, 1) return np.hstack((1-p, p)) use it as below within a try except block test = explain_df.iloc[0, :].values logger.info(test.shape) exp = explainer.explain_instance(test, predict_fn)
def predict_fn(x): p = gbm.predict(x).reshape(-1, 1) return np.hstack((1-p, p))
test = explain_df.iloc[0, :].values logger.info(test.shape) exp = explainer.explain_instance(test, predict_fn)
Exception:
Any suggestion on where shall I dig into ?
Situation:
Exception:
Any suggestion on where shall I dig into ?