Resolving error on using LSBoost (fitrensemble)

조회 수: 1 (최근 30일)
Aditi Mahajan
Aditi Mahajan 2023년 5월 21일
편집: the cyclist 2023년 6월 13일
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
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개)

카테고리

Help CenterFile Exchange에서 Scope Variables and Generate Names에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by