Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19208#discussion_r150620648
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/ml/tuning/CrossValidatorSuite.scala ---
    @@ -187,6 +191,55 @@ class CrossValidatorSuite
           .compareParamMaps(cv.getEstimatorParamMaps, 
cv2.getEstimatorParamMaps)
       }
     
    +  test("CrossValidator expose sub models") {
    +    val lr = new LogisticRegression
    +    val lrParamMaps = new ParamGridBuilder()
    +      .addGrid(lr.regParam, Array(0.001, 1000.0))
    +      .addGrid(lr.maxIter, Array(0, 3))
    +      .build()
    +    val eval = new BinaryClassificationEvaluator
    +    val numFolds = 3
    +    val subPath = new File(tempDir, "testCrossValidatorSubModels")
    +    val persistSubModelsPath = new File(subPath, "subModels").toString
    --- End diff --
    
    not used


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to