How to extract best parameters from a CrossValidatorModel

后端 未结 11 734
轮回少年
轮回少年 2020-12-13 02:31

I want to find the parameters of ParamGridBuilder that make the best model in CrossValidator in Spark 1.4.x,

In Pipeline Example in Spark documentation,

11条回答
  •  爱一瞬间的悲伤
    2020-12-13 02:55

    this java code should work: cvModel.bestModel().parent().extractParamMap().you can translate it to scala code parent()method will return an estimator, you can get the best params then.

提交回复
热议问题