How to extract best parameters from a CrossValidatorModel

后端 未结 11 732
轮回少年
轮回少年 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:52

    This is how you get the chosen parameters

    println(cvModel.bestModel.getMaxIter)   
    println(cvModel.bestModel.getRegParam)  
    

提交回复
热议问题