I want to find the parameters of ParamGridBuilder that make the best model in CrossValidator in Spark 1.4.x,
ParamGridBuilder
In Pipeline Example in Spark documentation,
Building in the solution of @macfeliga, a single liner that works for pipelines:
cvModel.bestModel.asInstanceOf[PipelineModel] .stages.foreach(stage => println(stage.extractParamMap))