diff --git a/bofire/outlier_detection/outlier_detection.py b/bofire/outlier_detection/outlier_detection.py index 69f7db94b..313126c98 100644 --- a/bofire/outlier_detection/outlier_detection.py +++ b/bofire/outlier_detection/outlier_detection.py @@ -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 = (