We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c50516 + 62c4825 commit e8d0c8eCopy full SHA for e8d0c8e
modnet/models/vanilla.py
@@ -846,6 +846,11 @@ def _restore_model(self):
846
fill_value=-1,
847
).fit(np.zeros((1, self.n_feat))),
848
)
849
+ if not hasattr(self, "targets_groups"):
850
+ self.targets_groups = [x for subl in self.targets for x in subl]
851
+ LOG.warning(
852
+ "Installed modnet version (v>=0.4.0) does not match loaded model (v<0.4.0) and may result in errors. Please retrain or change your modnet version !"
853
+ )
854
855
def save(self, filename: str) -> None:
856
"""Save the `MODNetModel` to filename:
0 commit comments