Skip to content

Commit

Permalink
Small fixes to Keras autologging (mlflow#11063)
Browse files Browse the repository at this point in the history
Signed-off-by: chenmoneygithub <chen.qian@databricks.com>
  • Loading branch information
chenmoneygithub authored and sateeshmannar committed Feb 20, 2024
1 parent 2e4818a commit 7d20315
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mlflow/keras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"log_model",
]
else:
from mlflow.keras.autolog import autolog
from mlflow.keras.autologging import autolog
from mlflow.keras.callback import MLflowCallback
from mlflow.keras.load import _load_pyfunc, load_model
from mlflow.keras.save import (
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions mlflow/tracking/fluent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2145,6 +2145,7 @@ def print_auto_logged_info(r):
# eg: mxnet.gluon is the actual library, mlflow.gluon.autolog is our autolog function for it
LIBRARY_TO_AUTOLOG_MODULE = {
"tensorflow": "mlflow.tensorflow",
"keras": "mlflow.keras",
"mxnet.gluon": "mlflow.gluon",
"xgboost": "mlflow.xgboost",
"lightgbm": "mlflow.lightgbm",
Expand Down
2 changes: 2 additions & 0 deletions tests/tracking/fluent/test_fluent_autolog.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from unittest import mock

import fastai
import keras
import lightgbm
import pyspark
import pyspark.ml
Expand Down Expand Up @@ -31,6 +32,7 @@

library_to_mlflow_module_without_spark_datasource = {
tensorflow: mlflow.tensorflow,
keras: mlflow.keras,
fastai: mlflow.fastai,
sklearn: mlflow.sklearn,
xgboost: mlflow.xgboost,
Expand Down

0 comments on commit 7d20315

Please sign in to comment.