How to determine feature importance using gradient boosting?

조회 수: 17 (최근 30일)
hanspeter
hanspeter 2024년 6월 24일
댓글: the cyclist 2024년 6월 24일
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?

채택된 답변

the cyclist
the cyclist 2024년 6월 24일
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
the cyclist
the cyclist 2024년 6월 24일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by