Resolving error on using LSBoost (fitrensemble)
Mostrar comentarios más antiguos
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 comentarios
Sathvik
el 31 de Mayo de 2023
Can you confirm if this error still persists? The error is not reproducible on my end.
Aditi Mahajan
el 31 de Mayo de 2023
Divyam
el 13 de Jun. de 2023
@Aditi Mahajan which version of MATLAB are you using?
Aditi Mahajan
el 13 de Jun. de 2023
the cyclist
el 13 de Jun. de 2023
Editada: the cyclist
el 13 de Jun. de 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.
Respuestas (0)
Categorías
Más información sobre Scope Variables and Generate Names en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!