Skip to content

Commit 5c27e79

Browse files
v0.2.21
fixes bug in plot_important_hyperparameter_contour
1 parent 8cb52b4 commit 5c27e79

2 files changed

Lines changed: 5 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.2.20"
10+
version = "0.2.21"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/spot/spot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,10 @@ def plot_important_hyperparameter_contour(self, threshold=0.025, filename=None):
718718
for j in var_plots:
719719
if j > i:
720720
if filename is not None:
721-
filename = filename + "_contour_" + str(i) + "_" + str(j) + ".png"
722-
self.plot_contour(i=i, j=j, min_z=min_z, max_z=max_z, filename=filename)
721+
filename_full = filename + "_contour_" + str(i) + "_" + str(j) + ".png"
722+
else:
723+
filename_full = None
724+
self.plot_contour(i=i, j=j, min_z=min_z, max_z=max_z, filename=filename_full)
723725

724726
def get_importance(self) -> list:
725727
"""Get importance of each variable and return the results as a list.

0 commit comments

Comments
 (0)