XGBoost Feature Importance

Not possible with nodes but with python scripting.

See:

And official xgboost documentation:

https://xgboost.readthedocs.io/en/latest/python/python_api.html?highlight=get_score#xgboost.Booster.get_score

Note that it’s important to see that xgboost has different types of “feature importance”.

The Solution:

What is mentioned in the Stackoverflow reply, you could use SHAP to determine feature importance and that would actually be available in KNIME (I think it’s still in the KNIME Labs category).

Therefore if SHAP suit your purpose (and it should), that is the way I would go.

2 Likes