Feature
Extraction
Feature
Engineering
Feature
Selection
Model
Selection
Model
Evaluation
Score
Calibration
&
Insights
D
A
T
A
ETL LEARNING
Best Model
Feature
Extraction
Feature
Engineering
Feature
Selection
D
A
T
A
ETL
Scores & Insights
Model Application
Score
Calibration
&
Insights
Best Model
INFERENCE
Feature
Extraction
Feature
Engineering
Feature
Selection
D
A
T
A
ETL
Scores & Insights
Model Application
Score
Calibration
&
Insights
INFERENCE
Best Model
Feature
Extraction
Feature
Engineering
Feature
Selection
D
A
T
A
ETL
Scores & Insights
Model Application
Score
Calibration
&
Insights
INFERENCE
Best Model
Spark Application
Feature
Extraction
Feature
Engineering
Feature
Selection
Model
Selection
Model
Evaluation
Score
Calibration
D
A
T
A
S
E
T
/
R
D
D
ETL LEARNING
Best Model
tokenize
pivot
impute
tf-idf
bucketize
combine
distribs
logreg
randfores
t
xgboost
auroc
fmeasure
aupr
calibrate
loco
Model Application
Feature
Extraction
Feature
Engineering
Feature
Selection
Score
Calibration
D
A
T
A
S
E
T
/
R
D
D
ETL INFERENCE
Scores & Insights
tokenize
impute
tf-idf
bucketize
combine
xgboost
calibrate
loco
bucket
s
mean
freqs
booste
r
langs
distrib
s
D
A
T
A
S
E
T
Train
tokenize
pivot
impute
tf-idf
bucketize
combine
distribs
logreg
randfores
t
xgboost
auroc
fmeasure
aupr
calibrate loco
Score
tokenize
impute
tf-idf
bucketize
combine
xgboost
calibrate loco
bucketsmean
freqs
booster
langs
distribs
Train ( Dataset[T] ) => Score ( Dataset[T] ) =>
Dataset[S]
Python/R/JavaScriptSpark Runtime
JVM + ?Spark Runtime (load)
Spark Dependencies
Python/R/JavaScriptSpark Runtime
JVM + ?Spark Runtime (load)
Spark Dependencies
Python/R/JavaScriptSpark Runtime
JVM + ?Spark Runtime (load)
Spark Dependencies
Do you mind
having Spark
Runtime?Yes No
Do you mind
having JVM
runtime?
Do you need
sub-ms
latency?
Yes No
Custom
runtim
e
Use
Spark.
EOF
MLeap
NoYes
PFA
Deep
Learning?
ONNX
Yes
No
Making Spark ML Models Portable - Know Your Options
Making Spark ML Models Portable - Know Your Options
Making Spark ML Models Portable - Know Your Options
Making Spark ML Models Portable - Know Your Options

Making Spark ML Models Portable - Know Your Options