Skip to content

Commit

Permalink
Fix: remove save_format param from save_model in `KerasBaseEstima…
Browse files Browse the repository at this point in the history
…tor.__getstate__`
  • Loading branch information
RollerKnobster committed Jun 24, 2024
1 parent c520dbb commit b93af57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gordo/machine/model/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __getstate__(self):
if hasattr(self, "model") and self.model is not None:
buf = io.BytesIO()
with h5py.File(buf, compression="lzf", mode="w") as h5:
save_model(self.model, h5, overwrite=True)
self.model.save(h5, overwrite=True, save_format="h5")
buf.seek(0)
state["model"] = buf
if hasattr(self, "history"):
Expand Down

0 comments on commit b93af57

Please sign in to comment.