Skip to content

Commit d0ba56f

Browse files
0.20.1
1 parent 81ed228 commit d0ba56f

2 files changed

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

src/spotpython/light/predictmodel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def predict_model(config: dict, fun_control: dict) -> Tuple[float, float]:
8080
else:
8181
dm = fun_control["data_module"]
8282
# TODO: Check if this is necessary:
83-
# dm.setup(stage="train")
83+
dm.setup(stage="train")
8484
# Init model from datamodule's attributes
8585
model = fun_control["core_model"](**config, _L_in=_L_in, _L_out=_L_out, _L_cond=_L_cond, _torchmetric=_torchmetric)
8686

@@ -109,7 +109,7 @@ def predict_model(config: dict, fun_control: dict) -> Tuple[float, float]:
109109
trainer.fit(model=model, datamodule=dm)
110110

111111
# Changed in spotpython 0.18.12: commented out the following line
112-
# dm.setup(stage="predict")
112+
dm.setup(stage="predict")
113113

114114
# predictions = trainer.predict(model=model, datamodule=dm)
115115
# Changed in spotpython 0.18.12: use ckpt_path="last" to load the last checkpoint and not the model

0 commit comments

Comments
 (0)