What is the MPG in Random Forest Regression ?
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
the cyclist
on 24 Jul 2023
Edited: the cyclist
on 24 Jul 2023
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', ...
0 Comments
See Also
Categories
Find more on Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!