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

    https://github.com/apache/spark/pull/19993#discussion_r157870176
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/param/params.scala ---
    @@ -249,6 +250,29 @@ object ParamValidators {
       def arrayLengthGt[T](lowerBound: Double): Array[T] => Boolean = { 
(value: Array[T]) =>
         value.length > lowerBound
       }
    +
    +  /**
    +   * Checks that either inputCols and outputCols are set or inputCol and 
outputCol are set. If
    +   * this is not true, an `IllegalArgumentException` is raised.
    +   * @param model
    +   */
    +  def assertColOrCols(model: Params): Unit = {
    --- End diff --
    
    private[spark]


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to