diff --git a/deeplc/deeplc.py b/deeplc/deeplc.py index fdf82f9..4545108 100644 --- a/deeplc/deeplc.py +++ b/deeplc/deeplc.py @@ -853,8 +853,8 @@ def calibrate_preds_func_pygam( linear_model_left.fit(X_left, y_left) # Fit a linear model on the top 10% (right-side extrapolation) - X_right = X[-n_top:] - y_right = y[-n_top:] + X_right = predicted_tr[-n_top:] + y_right = measured_tr[-n_top:] linear_model_right = LinearRegression() linear_model_right.fit(X_right, y_right)