You can use PMML4S-Spark to import PMML as a SparkML converter, and then make predictions / estimates in Scala, for example:
import org.pmml4s.spark.ScoreModel val model = ScoreModel.fromFile("the/pmml/model/path") val scoreDf = model.transform(df)
If you use PySpark, you can use PyPMML-Spark , for example:
from pypmml_spark import ScoreModel model = ScoreModel.fromFile('the/pmml/model/path') score_df = model.transform(df)
source share