Applying a MRMR feature-selected ensemble model to new data

1 回表示 (過去 30 日間)
Impala
Impala 2023 年 8 月 15 日
コメント済み: Impala 2023 年 8 月 22 日
Hi,
I initially trained an ensemble model using 66 features, which were extracted from my data. I then applied the MRMR feature selection algorithm, limiting the number of features to 20.
I then went on to export the MRMR feature-selected model to my workspace and when inspecting the model parameters, noticed that the RequiredVariables is set to 1x66 cell
I was expecting this to be 1x20 cell i.e. the features that the MRMR algorithm identified as the best to use.
So do I need to retrain my ensemble model using the 20 features that the MRMR algorithm identified as the best to use or should the MRMR feature-selected ensemble trained model I exported into my workspace automatically identify the 20 features to use when presented with new data?
Any help would be greatly appreciated.
Thanks!

採用された回答

Sai Teja G
Sai Teja G 2023 年 8 月 21 日
Hi Impala,
I understand that you used ‘MRMR feature selection’ algorithm to limit the number of features to 20.
The 'fscmrmr()' function, which utilizes the 'MRMR' algorithm, provides the feature importance of the predictors. It returns a 1x66 cell, representing the importance of all the features. From this cell, you can select the top 20 important features according to your specific needs and retrain the model.
You can follow the example about Rank Predictors by Importance for more details.
Hope it helps!
  1 件のコメント
Impala
Impala 2023 年 8 月 22 日
Hi Sai,
Thank you for the suggestion - I will select the features and retrain the model, as advised.
Thanks!
Gursharan

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by