我知道我可以像這樣實現一個均方根誤差函數:
def rmse(predictions, targets): return np.sqrt(((predictions - targets) ** 2) .mean())
如果這個 rmse 函數在某個庫中實現,可能是在 scipy 或 scikit-learn 中,我正在尋找什麼?
我知道我可以像這樣實現一個均方根誤差函數:
def rmse(predictions, targets): return np.sqrt(((predictions - targets) ** 2) .mean())
如果這個 rmse 函數在某個庫中實現,可能是在 scipy 或 scikit-learn 中,我正在尋找什麼?