Resolving error on using LSBoost (fitrensemble)

What is wrong in the below code? The error shown is not understandable. I have followed each step given in fitrensemble documentation.
I=table;
I.C=categorical({'r' 'f' 'r' 'g' 'h' 's' 's' 'g' 'f' 'h'}');
I.X=[(1:2:6) (4:0.5:7)]';
I.Y=logspace(1,4,10)';
Model=fitrensemble(I,"Y","Method","LSBoost","Learners","tree")
The above code is working if BAG method is used instead of LSBoost.
The error is attached below

5 件のコメント

Sathvik
Sathvik 2023 年 5 月 31 日
Can you confirm if this error still persists? The error is not reproducible on my end.
Aditi Mahajan
Aditi Mahajan 2023 年 5 月 31 日
Yes, the error persists in the MATLAB application. I used the same code on MATLAB online, it is working there fine.
There may be some internal issue.
Divyam
Divyam 2023 年 6 月 13 日
@Aditi Mahajan which version of MATLAB are you using?
Aditi Mahajan
Aditi Mahajan 2023 年 6 月 13 日
MATLAB 2022a
the cyclist
the cyclist 2023 年 6 月 13 日
編集済み: the cyclist 2023 年 6 月 13 日
Your code works for me locally with MATLAB 2022a (Update 6), on the latest MacOS.
You could try making sure you have the latest update and/or reinstalling MATLAB.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeScope Variables and Generate Names についてさらに検索

製品

リリース

R2022a

質問済み:

2023 年 5 月 21 日

編集済み:

2023 年 6 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by