MATLAB Answers

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

30 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??

  2 Comments

Zara Khan
Zara Khan on 25 Sep 2018
It will be helpful if you explain this with an example.

Sign in to comment.

Answers (1)

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

  0 Comments

Sign in to comment.

Sign in to answer this question.