Skip to content

Commit 909942c

Browse files
reshape pred
1 parent ae51c7e commit 909942c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deeplc/deeplc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ def calibration_core(self, uncal_preds, cal_dict, cal_min, cal_max):
482482
return np.array(cal_preds)
483483
if self.pygam_calibration:
484484
linear_model_left, spline_model, linear_model_right = cal_dict
485-
y_pred_spline = spline_model.predict(uncal_preds)
486-
y_pred_left = linear_model_left.predict(uncal_preds)
487-
y_pred_right = linear_model_right.predict(uncal_preds)
485+
y_pred_spline = spline_model.predict(uncal_preds.reshape(-1, 1))
486+
y_pred_left = linear_model_left.predict(uncal_preds.reshape(-1, 1))
487+
y_pred_right = linear_model_right.predict(uncal_preds.reshape(-1, 1))
488488

489489
# Use spline model within the range of X
490490
within_range = (uncal_preds >= cal_min()) & (uncal_preds <= cal_max())

0 commit comments

Comments
 (0)