Borrar filtros
Borrar filtros

How to determine feature importance using gradient boosting?

30 visualizaciones (últimos 30 días)
hanspeter
hanspeter el 24 de Jun. de 2024 a las 15:14
Comentada: the cyclist el 24 de Jun. de 2024 a las 22:19
When using XGBoost in Python you can train a model and then use the embedded feature importance of XGBoost to determine which features are the most important.
In Matlab there is no implementation of XGBoost, but there is fitrensemble which is similar (afaik). Is there a way to use it for detemination of feature importance? Or is there maybe another way to do feature importance the way XGBoost does it?

Respuesta aceptada

the cyclist
the cyclist el 24 de Jun. de 2024 a las 15:27
The model that is output from fitrensemble has a predictorImportance method for global predictor importance.
You can also use shapley for local feature importance.
  1 comentario
the cyclist
the cyclist el 24 de Jun. de 2024 a las 22:19
Also, note that XGBoost is not an algorithm. It's just an efficient implementation of gradient boosting. You might find this question/answer from the MathWorks support team to be interesting.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by