Skip to content

Commit b1ba479

Browse files
0.11.2
get_tuned_hyperparameters accepts fun_control as an argument
1 parent b349faa commit b1ba479

2 files changed

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

src/spotPython/hyperparameters/values.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,14 +1180,17 @@ def get_ith_hyperparameter_name_from_fun_control(fun_control, key, i):
11801180
return None
11811181

11821182

1183-
def get_tuned_hyperparameters(spot_tuner):
1183+
def get_tuned_hyperparameters(spot_tuner, fun_control=None) -> dict:
11841184
"""
11851185
Get the tuned hyperparameters from the spot tuner.
11861186
This is just a wrapper function for the spot `get_tuned_hyperparameters` method.
11871187
11881188
Args:
11891189
spot_tuner (object):
11901190
spot tuner object.
1191+
fun_control (dict):
1192+
dictionary containing control parameters for the hyperparameter tuning.
1193+
Optional. Default is None.
11911194
11921195
Returns:
11931196
(dict):
@@ -1272,4 +1275,4 @@ def get_tuned_hyperparameters(spot_tuner):
12721275
'patience': 3.0,
12731276
'initialization': 1.0}
12741277
"""
1275-
return spot_tuner.get_tuned_hyperparameters()
1278+
return spot_tuner.get_tuned_hyperparameters(fun_control=fun_control)

0 commit comments

Comments
 (0)