相关疑难解决方法(0)

在python中是否存在用于均方根误差(RMSE)的库函数?

我知道我可以实现这样的均方根误差函数:

def rmse(predictions, targets):
    return np.sqrt(((predictions - targets) ** 2).mean())
Run Code Online (Sandbox Code Playgroud)

如果这个rmse函数在某个库中实现,可能是scipy或scikit-learn,我正在寻找什么?

python scipy scikit-learn

129
推荐指数
8
解决办法
19万
查看次数

标签 统计

python ×1

scikit-learn ×1

scipy ×1