MATLAB Answers

How can I use random forest classifier with an excel file?

20 views (last 30 days)
Zara Khan
Zara Khan on 24 Sep 2018
Answered: Bernhard Suhm on 3 Oct 2018
I have prepared a data set in excel. Now how I will implement this in random forest classifier??

Answers (1)

Bernhard Suhm
Bernhard Suhm on 3 Oct 2018
Something like this:
data = xlsread('filename');
mdl = fitcensemble(data,'class');

Community Treasure Hunt

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

Start Hunting!