Skip to content

Commit

Permalink
Fix: move assignment of kind above the _prepare_model call
Browse files Browse the repository at this point in the history
  • Loading branch information
RollerKnobster committed Jun 24, 2024
1 parent 78fde46 commit 31a59a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gordo/machine/model/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ def __init__(
building function and/or any additional args to be passed
to Keras' fit() method
"""
model = self._prepare_model()
super().__init__(**kwargs, model=model)
self.history = None

self.kind = self.load_kind(kind)
self.kwargs: Dict[str, Any] = kwargs
self.history = None

model = self._prepare_model()
super().__init__(**kwargs, model=model)

@staticmethod
def parse_module_path(module_path) -> Tuple[Optional[str], str]:
Expand Down

0 comments on commit 31a59a8

Please sign in to comment.