Resolving error on using LSBoost (fitrensemble)
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Gaussian Process Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!