RMSE
8 次查看(过去 30 天)
显示 更早的评论
Hi,
Does anybody know if there is any command in matlab, to calculate the RMSE (Root Mean Square Error) in a curve fitting problem?
Thanks
0 个评论
采纳的回答
Jiro Doke
2011-4-5
One way is to compute it yourself. You just need to compute the root of the mean of the squared errors (hence the name):
y = <true values>
yhat = <fitted values>
RMSE = sqrt(mean((y - yhat).^2));
2 个评论
Abilene Denunzio
2022-4-14
When I try this code I get a parse error at the first "<" in each line saying it's an invalid use of operator. How do I fix this?
Walter Roberson
2022-4-14
Comment out these two lines:
y = <true values>
yhat = <fitted values>
Now add lines that initialize y to the actual values to be fit against, and which initialize yhat to be projected or modeled or reconstructed values that you want to compare to the true values.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!