Model Development
44% of the examWhat this topic covers
Build and evaluate Spark ML pipelines for distributed data, choosing suitable estimators, transformers, and metrics. Score batch or streaming data, and scale training with tuning and parallelization tools.
Why must a Spark ML Pipeline be fitted on training data before validation?
Fit the Pipeline on training data only, then reuse the fitted model for validation. Imputers and StringIndexer learn values such as means and category labels from the data they see. Fitting on validation data would leak information and inflate evaluation metrics.