jack
jack

Reputation: 1951

Is it possible to load a Scala/Spark PipelineModel by mlflow?

I try to use mlflow to load a serialized Scala/Spark PipelineModel.

From mlflow document it seems it only supports PySpark. Is this the case?

Is it possible to load a serialized Scala/Spark PipelineModel in mlflow?

Upvotes: 0

Views: 394

Answers (1)

Andre
Andre

Reputation: 354

MLflow has a Java client which can be called from Scala. See: https://mlflow.org/docs/latest/java_api/index.html

The Java client has less features than the Python client in that it does not have the concept of MLflow flavors. So it doesn't have a flavor-specific log_model/logModel - you have to use logArtifact.

Example:

Upvotes: 1

Related Questions