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

    https://github.com/apache/spark/pull/19208#discussion_r148859543
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/tuning/CrossValidator.scala ---
    @@ -325,14 +328,19 @@ object CrossValidatorModel extends 
MLReadable[CrossValidatorModel] {
     
         ValidatorParams.validateParams(instance)
     
    -    protected var shouldPersistSubModels: Boolean = false
    +    protected var shouldPersistSubModels: Boolean = if 
(instance.hasSubModels) true else false
     
         /**
    -     * Set option for persist sub models.
    +     * Extra options for CrossValidatorModelWriter, current support 
"persistSubModels".
    +     * if sub models exsit, the default value for option 
"persistSubModels" is "true".
    --- End diff --
    
    typo: exsit -> exist


---

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

Reply via email to