Skip to content

Commit

Permalink
Fix: minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
RollerKnobster committed Jun 26, 2024
1 parent 29a715f commit 9680e35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gordo/builder/build_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,9 @@ def _extract_metadata_from_model(
# which also had a GordoBase as a parameter/attribute, but will satisfy BaseEstimators
# which can take a GordoBase model as a parameter, which will then have metadata to get
for key, val in model.__dict__.items():
if key == "regressor": # keras3 clones the regressor into regressor_ and never updates original regressor
# keras3 clones the regressor into regressor_ and never updates original regressor,
# but still stores both in attributes
if key == "regressor":
continue
if isinstance(val, Pipeline):
metadata.update(
Expand Down

0 comments on commit 9680e35

Please sign in to comment.