How to fix Loss function error in RF classification?

I am trying to use the Random Forest Classification code but it is giving some error on plot using loss function. I am attaching the input file along with matlab code and request you to kindly suggest me how to fix it.
I would appreciate your kind help.
Sanchit

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Products

Release

R2023a

Asked:

on 25 Jul 2023

Edited:

on 25 Jul 2023

Community Treasure Hunt

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

Start Hunting!