predictorImportance changes between releases

조회 수: 1 (최근 30일)
Thomas Kirsh
Thomas Kirsh 2022년 7월 15일
답변: the cyclist 2022년 7월 15일
I've been debugging an old bagged ensemble tree model and I noticed that when I run the model using MATLAB R2019a, R2017b, and R2021a, I get different results in the ordering and values of the important features using the predictorImportance function. The results between the R2017b and R2021a versions are similar (and close to what I'd expect to be the important features), but the R2019a results are quite different. All I've changed was the version, and printed out the variables, template tree, and model to check. I've looked through the old release notes and didn't see any mention of changes made to this function. I'm wondering if there was another change that influenced this function or if anyone else has encountered this issue?

답변 (1개)

the cyclist
the cyclist 2022년 7월 15일
Are the ML model results themselves identical?
Off the top of my head, I don't know enough about the algorithm and possible changes, but one easy thing to try would be to set the random number generator seed at the start of your code, e.g.
rng default
and see if you then get the same results. This is a common cause of differences.

카테고리

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