필터 지우기
필터 지우기

What is the MPG in Random Forest Regression ?

조회 수: 1 (최근 30일)
Sanchit
Sanchit 2023년 7월 23일
편집: the cyclist 2023년 7월 24일
t = templateTree('NumVariablesToSample','all',...
'PredictorSelection','interaction-curvature','Surrogate','on');
rng(1); % For reproducibility
Mdl = fitrensemble(Z,MPG,'Method','Bag','NumLearningCycles',200, ...
'Learners',t);
What is the MPG in above code?
Please let me know.
Thanks.
Sanchit

답변 (1개)

the cyclist
the cyclist 2023년 7월 24일
편집: the cyclist 2023년 7월 24일
That code looks similar to example code from the documentation for fitrensemble or templateTree.
In those examples, MPG is one of the variables in the data table. (In your code Z would be that table.) It's the miles per gallon for cars in the example carsmall dataset.
MPG should have quotes around it, in general.
Mdl = fitrensemble(Z,'MPG', ...

카테고리

Help CenterFile Exchange에서 Regression에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by