Resolving error on using LSBoost (fitrensemble)

1 Ansicht (letzte 30 Tage)
Aditi Mahajan
Aditi Mahajan am 21 Mai 2023
Bearbeitet: the cyclist am 13 Jun. 2023
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 Kommentare
Aditi Mahajan
Aditi Mahajan am 13 Jun. 2023
MATLAB 2022a
the cyclist
the cyclist am 13 Jun. 2023
Bearbeitet: the cyclist am 13 Jun. 2023
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Scope Variables and Generate Names finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by