diff --git a/skpro/regression/residual.py b/skpro/regression/residual.py index be3951e08..72f3552ad 100644 --- a/skpro/regression/residual.py +++ b/skpro/regression/residual.py @@ -4,6 +4,7 @@ __author__ = ["fkiraly"] +import numpy as np import pandas as pd from sklearn import clone @@ -104,7 +105,7 @@ def _fit(self, X, y): y = y.values.flatten() est.fit(X, y) - resids = y - est.predict(X) + resids = np.abs(y - est.predict(X)) resids = resids.flatten()