QuestionQ42

VerifiedModel Deployment

A machine learning engineer trained a machine learning model to predict customer churn. They want to use this model for streaming predictions on streaming data with Delta Live Tables (DLT). The model is stored as a SparkML pipeline in MLflow, and new customer data streams into a Delta table. They want to implement streaming inference with Delta Live Tables and MLflow.

Which approach accomplishes this?

Explanation

MLflow models can be exposed as Spark UDFs with mlflow.pyfunc.spark_udf, which allows scoring to run as a Spark DataFrame transformation, including real-time Spark Streaming. In a Delta Live Tables streaming definition, dlt.read_stream() supplies the incremental input, and applying the model UDF produces a streaming predictions table.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!