Skip to content

Commit

Permalink
fix warning (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
jduerholt authored Jun 18, 2024
1 parent 3ce8256 commit 8d11c27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bofire/outlier_detection/outlier_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ def detect(self, experiments: pd.DataFrame) -> pd.DataFrame:
break # converged
ix_old = ix_sub

self.surrogate.fit(experiments[experiments.index.isin(indices[ix_sub])]) # type: ignore

self.surrogate.fit( # type: ignore
experiments[experiments.index.isin(indices[ix_sub])].copy()
)
# make prediction
pred = self.surrogate.predict(experiments)
d_sq = (
Expand Down

0 comments on commit 8d11c27

Please sign in to comment.