Skip to content

Commit 4db3e76

Browse files
v0.14.76
1 parent f761bb6 commit 4db3e76

5 files changed

Lines changed: 8 additions & 137 deletions

File tree

notebooks/00_spotPython_tests.ipynb

Lines changed: 4 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -4828,95 +4828,12 @@
48284828
},
48294829
{
48304830
"cell_type": "code",
4831-
"execution_count": 1,
4832-
"metadata": {},
4833-
"outputs": [
4834-
{
4835-
"name": "stderr",
4836-
"output_type": "stream",
4837-
"text": [
4838-
"Seed set to 123\n"
4839-
]
4840-
},
4841-
{
4842-
"name": "stdout",
4843-
"output_type": "stream",
4844-
"text": [
4845-
"\n",
4846-
"Loaded fun_control in spotRun():\n",
4847-
"| name | type | default | lower | upper | transform |\n",
4848-
"|------------------|--------|-----------|---------|---------|-------------|\n",
4849-
"| fit_intercept | factor | 1 | 0 | 1 | None |\n",
4850-
"| gcv_mode | factor | auto | 0 | 2 | None |\n",
4851-
"| alpha_per_target | factor | 0 | 0 | 1 | None |\n",
4852-
"Moving TENSORBOARD_PATH: runs/ to TENSORBOARD_PATH_OLD: runs_OLD/runs_2024_08_16_17_11_15\n",
4853-
"spotPython tuning: 0.027965881403044932 [##--------] 20.00% \n",
4854-
"spotPython tuning: 0.027965881284260138 [##--------] 23.33% \n",
4855-
"spotPython tuning: 0.027965881284260138 [###-------] 26.67% \n",
4856-
"spotPython tuning: 0.027965881284260138 [###-------] 30.00% \n"
4857-
]
4858-
},
4859-
{
4860-
"name": "stderr",
4861-
"output_type": "stream",
4862-
"text": [
4863-
"TensorFlow installation not found - running with reduced feature set.\n"
4864-
]
4865-
},
4866-
{
4867-
"name": "stdout",
4868-
"output_type": "stream",
4869-
"text": [
4870-
"spotPython tuning: 0.027965881284260138 [###-------] 33.33% \n",
4871-
"spotPython tuning: 0.027965881284260138 [####------] 36.67% \n",
4872-
"spotPython tuning: 0.027965881284260138 [####------] 40.00% \n"
4873-
]
4874-
},
4875-
{
4876-
"name": "stderr",
4877-
"output_type": "stream",
4878-
"text": [
4879-
"I0816 17:11:16.244111 13337915392 plugin.py:429] Monitor runs begin\n",
4880-
"Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all\n",
4881-
"TensorBoard 2.17.0 at http://localhost:6006/ (Press CTRL+C to quit)\n"
4882-
]
4883-
},
4884-
{
4885-
"name": "stdout",
4886-
"output_type": "stream",
4887-
"text": [
4888-
"spotPython tuning: 0.027965881284260138 [####------] 43.33% \n",
4889-
"spotPython tuning: 0.027965881284260138 [#####-----] 46.67% \n",
4890-
"spotPython tuning: 0.027965881284260138 [#####-----] 50.00% \n",
4891-
"spotPython tuning: 0.027965881284260138 [#####-----] 53.33% \n",
4892-
"spotPython tuning: 0.027965881284260138 [######----] 56.67% \n",
4893-
"spotPython tuning: 0.027965881284260138 [######----] 60.00% \n",
4894-
"spotPython tuning: 0.027965881284260138 [######----] 63.33% \n",
4895-
"spotPython tuning: 0.027965881284260138 [#######---] 66.67% \n",
4896-
"spotPython tuning: 0.027965881284260138 [#######---] 70.00% \n",
4897-
"spotPython tuning: 0.027965881284260138 [#######---] 73.33% \n",
4898-
"spotPython tuning: 0.027965881284260138 [########--] 76.67% \n",
4899-
"spotPython tuning: 0.027965881284260138 [########--] 80.00% \n",
4900-
"spotPython tuning: 0.027965881284260138 [########--] 83.33% \n",
4901-
"spotPython tuning: 0.027965881284260138 [#########-] 86.67% \n",
4902-
"spotPython tuning: 0.027965881284260138 [#########-] 90.00% \n",
4903-
"spotPython tuning: 0.027965881284260138 [#########-] 93.33% \n",
4904-
"spotPython tuning: 0.027965881284260138 [##########] 96.67% \n",
4905-
"spotPython tuning: 0.027965881284260138 [##########] 100.00% Done...\n",
4906-
"\n"
4907-
]
4908-
},
4909-
{
4910-
"name": "stderr",
4911-
"output_type": "stream",
4912-
"text": [
4913-
"TensorBoard caught SIGTERM; exiting...\n"
4914-
]
4915-
}
4916-
],
4831+
"execution_count": null,
4832+
"metadata": {},
4833+
"outputs": [],
49174834
"source": [
49184835
"from spotPython.utils.file import load_and_run_spot_python_experiment\n",
4919-
"spot_tuner = load_and_run_spot_python_experiment(\"spot_100_experiment.pickle\")"
4836+
"spot_tuner = load_and_run_spot_python_experiment(\"spot_000_experiment.pickle\")"
49204837
]
49214838
},
49224839
{

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

src/spotPython/spot/spot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,14 +693,14 @@ def write_db_dict(self) -> None:
693693
print("The following dictionaries are written to the json file spotPython_db.json:")
694694
print("fun_control:")
695695
pprint.pprint(fun_control)
696-
696+
697697
# Iterate over a list of the keys to avoid modifying the dictionary during iteration
698698
for key in list(fun_control.keys()):
699699
if not isinstance(fun_control[key], (int, float, str, list, dict)):
700700
# remove the key from the dictionary
701701
print(f"Removing non-serializable key: {key}")
702702
fun_control.pop(key)
703-
703+
704704
print("fun_control after removing non-serializabel keys:")
705705
pprint.pprint(fun_control)
706706
pprint.pprint(fun_control)

src/spotPython/utils/file.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,5 @@ def load_and_run_spot_python_experiment(spot_pkl_name) -> tuple:
257257
spot_tuner.run()
258258
# # tensorboard --logdir="runs/"
259259
stop_tensorboard(p_open)
260+
print(gen_design_table(fun_control=fun_control, spot=spot_tuner))
260261
return spot_tuner, fun_control, design_control, surrogate_control, optimizer_control, p_open

test/test_load_and_run_spot_python_experiment.py

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)