Can "genrfeatures" function be used with "fitrnet" function?

3 ビュー (過去 30 日間)
Aditi Mahajan
Aditi Mahajan 2022 年 12 月 27 日
回答済み: Rohit 2023 年 3 月 21 日
In "genrfeatures" function, the "TargetLearner" argument has only three options: linear, SVM and ensemble (bag method). I want to do feature engineering and then use the resulting new features table for generating neural network model. But in the documentation it is suggested to use the corresponding regression learner as the TargetLearner is used.
Is it ok to use any TargetLearner with any other Regression Learner method?

回答 (1 件)

Rohit
Rohit 2023 年 3 月 21 日
In general, it is recommended to use TargetLearner with its applicable Regression Learner method.
genrfeatures assumes that generated features are used to train an interpretable linear regression model which is not there in this case.
But you can still use the features which are returned by TargetLearner with any of the 3 types and then pass these features to neural network model(“fitrnet”) and evaluate your results.
Please go through the below documentation link for further reference-

カテゴリ

Help Center および File ExchangeModel Building and Assessment についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by