You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TensorFlow autolog automatic run ending (mlflow#2094)
* added keras logic and tests
* refactored keras autolog tests
* minor edits to keras tests
* minor edit to documentation
* added autolog ending for tf.Keras, added patching for tf.keras.model.fit_generator
* refactored and added tests for tf.keras
* removed fit_generator hook for another PR
* renamed create_model to create_keras_model
* refactored and added tests for auto ending tf.keras autolog runs
* made test names more descriptive
* lint
* added run starting in keras
* refactored run starting into yield fixture
* added logic for run autoending in tf.estimator
* added logic and tests for tf estimator run ending
* added _autolog_run_id, actually patched train
* fixed wrapper tries, refactored tests
* forgot a couple of parentheses
* updated docs
* updated docs more, removed extra line in tests
* changed wording for docs
* added tests for tf1
* added space in docs
* moved space in docs
* removed code in docs
* grammar in docs
* added param checking test
* fixed malformed table
* removing _AUTO_END_RUN
* added check for ending auto runs
* replaced manual tempdir with tmpdir fixture
* removing export_savedmodel from docs
Co-Authored-By: Siddharth Murching <smurching@gmail.com>
* Update docs wording
Co-Authored-By: Siddharth Murching <smurching@gmail.com>
* Added defensive check to run ending
Co-Authored-By: Siddharth Murching <smurching@gmail.com>
* created contextmanager
* fixed defensive check
* lint
* edited docs
| Keras | Training loss; validation loss; user-specified metrics | Number of layers; optimizer name; learning rate; epsilon | Model summary | `MLflow Model <https://mlflow.org/docs/latest/models.html>`_ (Keras model); on training end|
| ``tf.keras`` | Training loss; validation loss; user-specified metrics | Number of layers; optimizer name; learning rate; epsilon | Model summary | `MLflow Model <https://mlflow.org/docs/latest/models.html>`_ (Keras model), TensorBoard logs; on training end|
| Keras | Training loss; validation loss; user-specified metrics | Number of layers; optimizer name; learning rate; epsilon | Model summary |Model summary on training start; `MLflow Model <https://mlflow.org/docs/latest/models.html>`_ (Keras model) on training end |
| ``tf.keras`` | Training loss; validation loss; user-specified metrics | Number of layers; optimizer name; learning rate; epsilon | Model summary |Model summary on training start; `MLflow Model <https://mlflow.org/docs/latest/models.html>`_ (Keras model), TensorBoard logs on training end |
Note that autologging for ``tf.keras`` is handled by :py:func:`mlflow.tensorflow.autolog`, not :py:func:`mlflow.keras.autolog`.
233
233
234
+
If no active run exists when ``autolog()`` captures data, MLflow will automatically create a run to log information to.
235
+
Once training ends via calls to ``tf.estimator.train()``, ``tf.keras.fit()``, ``tf.keras.fit_generator()``, ``keras.fit()`` or ``keras.fit_generator()``,
236
+
or once ``tf.estimator`` models are exported via ``tf.estimator.export_saved_model()``, MLflow will automatically end that run.
237
+
238
+
If a run exists when ``autolog()`` captures data, MLflow will log to that run and not automatically end that run after training.
239
+
234
240
**Note**: this feature is experimental - the API and format of the logged data are subject to change.
0 commit comments