matlab code for mean_squared_error
Show older comments
oob_mse = mean_squared_error(y_train, predict(rf_classifier, X_train));
I need matlab code for mean_squared_error.
Please provide me.
Thanks.
Sanchit
4 Comments
Sanchit
on 9 Jul 2023
Walter Roberson
on 9 Jul 2023
oob_mse = immse(y_train, predict(rf_classifier, X_train));
Sanchit
on 9 Jul 2023
Accepted Answer
More Answers (1)
Prasannavenkatesh
on 9 Jul 2023
0 votes
Hi Sanchit,
You can use the existing immse function in matlab (https://in.mathworks.com/help/images/ref/immse.html) for calculating the mean squared error. Hope this helps.
2 Comments
Sanchit
on 9 Jul 2023
Walter Roberson
on 9 Jul 2023
oob_mse = immse(y_train, predict(rf_classifier, X_train));
Categories
Find more on Get Started with Statistics and Machine Learning Toolbox 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!