Skip to content

Commit

Permalink
Change range
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBouwmeester committed Aug 30, 2024
1 parent 909942c commit 390891e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeplc/deeplc.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def calibration_core(self, uncal_preds, cal_dict, cal_min, cal_max):
y_pred_right = linear_model_right.predict(uncal_preds.reshape(-1, 1))

# Use spline model within the range of X
within_range = (uncal_preds >= cal_min()) & (uncal_preds <= cal_max())
within_range = (uncal_preds >= cal_min) & (uncal_preds <= cal_max)
within_range = (
within_range.ravel()
) # Ensure this is a 1D array for proper indexing
Expand Down

0 comments on commit 390891e

Please sign in to comment.