MATLAB 帮助中心
Calculates the validation RMSE for model data
s = ValidationRMSE(model,X,Y)
s = ValidationRMSE(model,X,Y) calculates the root mean squared error (RMSE) of a validation set.
s
model
X
Y
collapse all
mbcmodel.model
Model whose root mean squared error is being computed, specified as a mbcmodel.model object.
table
Validation data to calculate RMSE, specified as a table object or numeric array.
Root mean squared error of the model compared to the validation set.
rmse = sqrt(sum((Y - evaluate(model,X)).^2)/N), where N is the number of data points.
rmse = sqrt(sum((Y - evaluate(model,X)).^2)/N)
N
Introduced in R2019a
SummaryStatistics | UpdateResponse
SummaryStatistics
UpdateResponse
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处