gpt4 book ai didi

R中的RMSE(均方根偏差)计算

转载 作者:行者123 更新时间:2023-12-04 13:01:28 28 4
gpt4 key购买 nike

我有数字特征观察 V1通过 V12用于目标变量 Wavelength .我想计算 Vx 之间的 RMSE列。数据格式如下。

每个变量“Vx”以 5 分钟的间隔进行测量。我想计算所有 Vx 变量的观测值之间的 RMSE,我该怎么做?

I have different observations for Wavelength variable, each variable ,Vx is measured at 5-minute interval,

这是我找到的链接,但我不确定如何获得 y_pred:
https://www.kaggle.com/wiki/RootMeanSquaredError

对于下面提供的链接,我认为我没有预测值:
http://heuristically.wordpress.com/2013/07/12/calculate-rmse-and-mae-in-r-and-sas/

最佳答案

下面的函数将为您提供 RMSE:

RMSE = function(m, o){
sqrt(mean((m - o)^2))
}
m用于模型(拟合)值, o用于观察(真实)值。

关于R中的RMSE(均方根偏差)计算,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26237688/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com