Skip to content

Conversation

@aadu
Copy link

@aadu aadu commented Jun 10, 2021

eli5 fails when booster.feature_names is None, which is now the default behavior in xgboost when passing in a vanilla numpy array.

TypeError: 'NoneType' object is not iterable

See dmlc/xgboost@9da2287 for the relevant commit in xgboost

@tjhallum
Copy link

As per this post on StackOverflow, I was able to sidestep this issue by downgrading to from XGBoost version 1.4.2 to version 1.3.0 (apparently 1.3.0 is the latest version supported by ELI5).

However...being forced to downgrade XGBoost isn't a satisfactory solution.

ELI5 should be compatible with the latest version of XGBoost.

@lopuhin
Copy link
Contributor

lopuhin commented May 11, 2022

The fix was released in 0.13 in https://github.com/eli5-org/eli5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants