We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a17f72 commit bd59d59Copy full SHA for bd59d59
chebai/result/prediction.py
@@ -37,6 +37,13 @@ def __init__(
37
38
self._dm_hparams = ckpt_file["datamodule_hyper_parameters"]
39
self._dm_hparams.pop("splits_file_path")
40
+ self._dm_hparams.pop("augment_smiles", None)
41
+ self._dm_hparams.pop("aug_smiles_variations", None)
42
+ assert "_class_path" in self._dm_hparams, (
43
+ "Datamodule hyperparameters must include a '_class_path' key.\n"
44
+ "Hence, either the checkpoint is corrupted or "
45
+ "it was not saved properly with latest lightning version"
46
+ )
47
self._dm: XYBaseDataModule = instantiate_module(
48
XYBaseDataModule, self._dm_hparams
49
)
0 commit comments