CrossValidator in Spark ML is used to:
Select an answer to reveal the explanation.
Short Explanation and Infographic
CrossValidator = Spark's k-fold HPO wrapper over Pipeline/Estimator + ParamGrid.
Full explanation below image
Full Explanation
CrossValidator tries param maps, scores with an evaluator, and fits the best model.