-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(requirements): bump dependencies, mainly to eliminate third-party…
… security issues (#1383) * Fix(requirements): bump dependencies, mainly to eliminate third-party security issues * Bump `TensorFlow 2.12.1->2.16.1` * Bump `catboost 1.2.2->1.2.5` * Bump `mlflow 2.9.2->2.12.2` * Bump `azureml-core 1.49.0->1.56.0` * Remove locked `gunicorn` and `packaging` * Fix(requirements): bump test dependencies, mainly to eliminate third-party security issues * Bump `docker 6.1.3->7.1.0` * Bump `responses 0.23->0.25.3` * Bump `black 22.12.0->24.4.2` * Bump `notebook 6.5.6->7.2.1` * Fix(requirements): use scikeras to bring back keras wrappers * Add `scikeras~=0.13.0` dependency * Use `scikeras.wrappers.KerasRegressor` instead of removed `tensorflow.keras.wrappers.scikit_learn import KerasRegressor` * Fix: apply formatting * Fix: add `super().__init__(**kwargs)` call to `KerasBaseEstimator` * Fix: rename `build_fn` to `model` * Fix: move `super().__init__(**kwargs)` to start of `KerasBaseEstimator.__init__` * Fix: i'm done with comments for now * Fix: remove redundant `BaseEstimator` inheritance in `KerasBaseEstimator` * Fix: remove redundant `BaseWrapper` alias for `KerasRegressor` * Fix: add super call to KerasBaseEstimator * Fix: no comments * Fix: refactor `__call__` method of models to `_prepare_model` * Fix: move assignment of `kind` above the `_prepare_model` call * Fix: prepare model right before calling fit in keras models * Fix: rename `self.history` to `self._history` in `KerasBaseEstimator` * Fix: rename `self.kind` and `self.kwargs` to `self._kind` and `self._kwargs` in `KerasBaseEstimator` * Fix: refactor `getattr(keras.optimizers, optimizer)` to `keras.optimizers.get(optimizer)` in autoencoders * Fix: refactor `getattr(keras.optimizers, optimizer)` to `keras.optimizers.get(optimizer)` in autoencoders * Fix: refactor `getattr(keras.optimizers, optimizer)` to `keras.optimizers.get(optimizer)` in autoencoders * Fix: remove `save_format` param from `save_model` in `KerasBaseEstimator.__getstate__` * Fix: remove `save_format` param from `save_model` in `KerasBaseEstimator.__getstate__` * Fix: formatting * Fix: change saving to tempfile * Fix: formatting * Fix: save model as .keras temp file * Fix: save model as .keras temp file * Fix: save model as .keras temp file * Fix: load model as .keras temp file * Fix: load model as .keras temp file * Fix: load model as .keras temp file * Fix: adjust test for argo versions * Fix: save bytes instead of bytesio to model state * Fix: skip loading unitialized model from state This is due to the fact that `TransformedTargetRegressor` receives a `regressor` as input, then clones it for every `fit` and sets it to `regressor_`, leaving the original `regressor` uninitialized forever. * Fix: adjust test for serializer * Fix: adjust test for serializer * Fix: rename `KerasLSTMBaseEstimator` attributes to underscored prefixed * Fix: rename `KerasLSTMBaseEstimator` attributes to underscored prefixed * Fix: do not propagate kwargs to `super().__init__` of KerasBaseEstimator * Fix: do not propagate kwargs to `super().__init__` of KerasBaseEstimator * Fix: do not propagate kwargs to `super().__init__` of KerasBaseEstimator * Fix: do not propagate kwargs to `super().__init__` of KerasBaseEstimator * Fix: propagate batch_size to `super().__init__` of KerasBaseEstimator * Fix: set `input_shape` to tensorflow layers definition in `KerasRawModelRegressor` docstring * Fix: store history for model in `_history` and use proper `regressor_` in `_extract_metadata_from_model` * Fix: formatting * Fix: adjust `model` and `history` attributes access in `KerasBaseEstimator` and children Also adjust tests * Fix: adjust `lstm` `optimizer_kwargs` and `input.shape` access * Fix: add input_shape to Dense layers in kerasraw test * Formatting * Formatting * Add gunicorn as base requirement
- Loading branch information
1 parent
2312c6a
commit 19fc575
Showing
24 changed files
with
220 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
mlflow~=2.14 | ||
azureml-core~=1.49 | ||
azureml-core~=1.56.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
dictdiffer~=0.8 | ||
dataclasses-json~=0.3 | ||
gunicorn~=22.0 | ||
jinja2~=3.1 | ||
python-dateutil~=2.8 | ||
tensorflow~=2.16.0 | ||
scikeras~=0.13.0 | ||
gunicorn~=22.0 | ||
# There's a bug in keras 3.4.0 with loading models (https://github.com/keras-team/keras/issues/19921) | ||
keras<3.4.0 | ||
Flask>=2.2.5,<3.0.0 | ||
simplejson~=3.17 | ||
prometheus_client~=0.7 | ||
# Due to azureml-core 1.49.0 depends on packaging<22.0 | ||
packaging>=21.0,<22.0 | ||
packaging>=24.0 | ||
gordo-client~=6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.