フィルターのクリア

How to use sequentialfs in regression?

4 ビュー (過去 30 日間)
azarang asadi
azarang asadi 2023 年 3 月 6 日
回答済み: Sarvesh Kale 2023 年 3 月 13 日
I'm trying to use sequential feature selection in a regression problem and I keep on getting errors. I know something is wrong with my function handle but can't figure it out. Tried these three handles:
%fun = @(XT,yT,Xt,yt)loss(regress(yT,XT),Xt,yt);
%fun = @(XT,yT,Xt,yt)rmse(predict(fitlm(XT,yT),Xt),yt);
%fun = @(XT,yT,Xt,yt)rmse(predict(regress(yT,XT),Xt),yt);
[fs,history] = sequentialfs(fun,X,y,'cv',c,'options',opts);
  1 件のコメント
Sarvesh Kale
Sarvesh Kale 2023 年 3 月 13 日
It would be very helpful if you post the full code, along with screenshots of error messages, this would help in quick resolution of issue

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

回答 (1 件)

Sarvesh Kale
Sarvesh Kale 2023 年 3 月 13 日
Hi azarang asadi,
The documentation link to the sequentialfs function is attached here. There is also an example that demonstrates how to use the function. I hope this helps with your query.
Thank you

Community Treasure Hunt

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

Start Hunting!

Translated by