Skip to content

Commit 3af7394

Browse files
0.26.27
basinhopping
1 parent a012f45 commit 3af7394

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "spotpython"
10-
version = "0.26.26"
10+
version = "0.26.27"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotpython/spot/spot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ def suggest_new_X(self) -> np.array:
18201820
),
18211821
"direct": lambda: self.optimizer(func=self.infill, bounds=self.de_bounds, eps=1e-2),
18221822
"shgo": lambda: self.optimizer(func=self.infill, bounds=self.de_bounds),
1823-
"basinhopping": lambda: self.optimizer(func=self.infill, x0=self.min_X),
1823+
"basinhopping": lambda: self.optimizer(func=self.infill, x0=self.min_X, minimizer_kwargs={"method": "Nelder-Mead"}),
18241824
"default": lambda: self.optimizer(func=self.infill, bounds=self.de_bounds),
18251825
}
18261826
for i in range(self.n_points):

test/test_preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,4 @@ def test_generic_preprocess_df_with_empty_dataframe():
178178
try:
179179
generic_preprocess_df(df, target="target")
180180
except ValueError as e:
181-
assert str(e) == "Target column 'target' not found in the DataFrame."
181+
assert str(e) == "The input DataFrame is empty."

0 commit comments

Comments
 (0)