How to use random forest in MATLAB?

304 views (last 30 days)
Maryam Mohammadi
Maryam Mohammadi on 4 Oct 2021
Answered: Drew on 9 Nov 2022
I'm new to matlab.
Does "Bagged Trees" classifier in classification learner toolbax use a ranfom forest algorithm?
If not how can i use random forest in matlab?

Answers (1)

Drew
Drew on 9 Nov 2022
The short answer to your question is yes. That is, the "Bagged Trees" classifier in the classification learner app uses a random forest algorithm. On the doc page https://www.mathworks.com/help/stats/choose-a-classifier.html, see the table on ensemble classifiers (direct link https://www.mathworks.com/help/stats/choose-a-classifier.html#bunt0rb-1). One of the rows of that table shows that the "Bagged Trees" classifier type uses a "Random Forest" ensemble method.

Community Treasure Hunt

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

Start Hunting!