matlab code for mean_squared_error
显示 更早的评论
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 个评论
Sanchit
2023-7-9
Walter Roberson
2023-7-9
oob_mse = immse(y_train, predict(rf_classifier, X_train));
Sanchit
2023-7-9
采纳的回答
更多回答(1 个)
Prasannavenkatesh
2023-7-9
0 个投票
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 个评论
Sanchit
2023-7-9
Walter Roberson
2023-7-9
oob_mse = immse(y_train, predict(rf_classifier, X_train));
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!