我知道我可以实现这样的均方根误差函数:
def rmse(predictions, targets): return np.sqrt(((predictions - targets) ** 2).mean())
如果这个rmse函数在某个库中实现,可能是scipy或scikit-learn,我正在寻找什么?
python scipy scikit-learn
python ×1
scikit-learn ×1
scipy ×1