Skip to content

Commit b8acd26

Browse files
v0.3.0
hyperlight replaces lightning, add_core_model*, modify_hyper_parameter do not return fun_control
1 parent 5e5ebc2 commit b8acd26

16 files changed

Lines changed: 16 additions & 734 deletions

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

src/spotPython/data/lightning2_hyper_dict.json

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

src/spotPython/data/lightning2_hyper_dict.py

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

src/spotPython/data/lightning_hyper_dict.json

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

src/spotPython/data/lightning_hyper_dict.py

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

src/spotPython/fun/hyperlightning.py

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

src/spotPython/fun/hyperlightning2.py

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

src/spotPython/hyperparameters/values.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ def modify_hyper_parameter_levels(fun_control, hyperparameter, levels) -> dict:
261261
fun_control["core_model_hyper_dict"][hyperparameter].update({"levels": levels})
262262
fun_control["core_model_hyper_dict"][hyperparameter].update({"lower": 0})
263263
fun_control["core_model_hyper_dict"][hyperparameter].update({"upper": len(levels) - 1})
264-
return fun_control
265264

266265

267266
def modify_hyper_parameter_bounds(fun_control, hyperparameter, bounds) -> dict:
@@ -285,7 +284,6 @@ def modify_hyper_parameter_bounds(fun_control, hyperparameter, bounds) -> dict:
285284
"""
286285
fun_control["core_model_hyper_dict"][hyperparameter].update({"lower": bounds[0]})
287286
fun_control["core_model_hyper_dict"][hyperparameter].update({"upper": bounds[1]})
288-
return fun_control
289287

290288

291289
def get_default_values(fun_control) -> dict:
@@ -606,7 +604,6 @@ def add_core_model_to_fun_control(core_model, fun_control, hyper_dict, filename=
606604
var_type = get_var_type(fun_control)
607605
var_name = get_var_name(fun_control)
608606
fun_control.update({"var_type": var_type, "var_name": var_name})
609-
return fun_control
610607

611608

612609
def get_one_core_model_from_X(X, fun_control=None):

src/spotPython/light/crossvalidationdatamodule.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ def setup(self, stage=None):
4646
train_indexes, val_indexes = all_splits[self.hparams.k]
4747
train_indexes, val_indexes = train_indexes.tolist(), val_indexes.tolist()
4848
self.data_train = Subset(dataset_full, train_indexes)
49+
print(f"Train Dataset Size: {len(self.data_train)}")
4950
self.data_val = Subset(dataset_full, val_indexes)
51+
print(f"Val Dataset Size: {len(self.data_val)}")
5052

5153
def train_dataloader(self):
5254
return DataLoader(

0 commit comments

Comments
 (0)