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,
To print everything in paramMap, you actually don't have to call parent:
paramMap
cvModel.bestModel.extractParamMap()
To answer OP's question, to get a single best parameter, for example regParam:
regParam
cvModel.bestModel.extractParamMap().apply(cvModel.bestModel.getParam("regParam"))