Skip to content

Commit

Permalink
Update conformal pred tie handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMeissnerDS committed Sep 20, 2024
1 parent 5fafa23 commit 04b33ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluecast/conformal_prediction/conformal_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def predict_interval(self, x: pd.DataFrame) -> np.ndarray:
)
)
# handle ties
+ self.random_generator.integers(0, 1)
+ self.random_generator.random()
* np.sum(
self.nonconformity_scores
== self.nonconformity_measure_scorer(
Expand Down

0 comments on commit 04b33ce

Please sign in to comment.