Skip to content

Commit 7371100

Browse files
0.12.6
plot_important_hyperparameter_contour uses threshold=0
1 parent 834facc commit 7371100

2 files changed

Lines changed: 2 additions & 20 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.12.5"
10+
version = "0.12.6"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/spot/spot.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,6 @@ def plot_contour(
15361536
contour_levels=10,
15371537
dpi=200,
15381538
title="",
1539-
verbosity=0,
15401539
) -> None:
15411540
"""Plot the contour of any dimension.
15421541
@@ -1561,8 +1560,6 @@ def plot_contour(
15611560
dpi of the plot. Default is 200.
15621561
title (str):
15631562
title of the plot
1564-
verbosity (int):
1565-
verbosity level. Default is 0.
15661563
15671564
Returns:
15681565
None
@@ -1611,21 +1608,6 @@ def plot_contour(
16111608
max_z = np.max(Z)
16121609
ax = fig.add_subplot(221)
16131610
# plot predicted values:
1614-
if verbosity > 0:
1615-
print(f"self.lower[i]: {self.lower[i]}")
1616-
print(f"self.upper[i]: {self.upper[i]}")
1617-
print(f"self.lower[j]: {self.lower[j]}")
1618-
print(f"self.upper[j]: {self.upper[j]}")
1619-
print(f"x: {x}")
1620-
print(f"y: {y}")
1621-
print(f"X: {X}")
1622-
print(f"Y: {Y}")
1623-
print(f"z0: {z0}")
1624-
print(f"zz: {zz}")
1625-
print(f"zs: {zs}")
1626-
print(f"Z: {Z}")
1627-
print(f"min_z: {min_z}")
1628-
print(f"max_z: {max_z}")
16291611
plt.contourf(X, Y, Z, contour_levels, zorder=1, cmap="jet", vmin=min_z, vmax=max_z)
16301612
if self.var_name is None:
16311613
plt.xlabel("x" + str(i))
@@ -1650,7 +1632,7 @@ def plot_contour(
16501632
pylab.show()
16511633

16521634
def plot_important_hyperparameter_contour(
1653-
self, threshold=0.025, filename=None, show=True, max_imp=None, title=""
1635+
self, threshold=0.0, filename=None, show=True, max_imp=None, title=""
16541636
) -> None:
16551637
"""
16561638
Plot the contour of important hyperparameters.

0 commit comments

Comments
 (0)