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

    https://github.com/apache/spark/pull/20058#discussion_r159024163
  
    --- Diff: python/pyspark/ml/base.py ---
    @@ -47,6 +86,28 @@ def _fit(self, dataset):
             """
             raise NotImplementedError()
     
    +    @since("2.3.0")
    +    def fitMultiple(self, dataset, params):
    --- End diff --
    
    We couldn't use `fit` because it's going to have the same signature as the 
existing `fit` method but return a different type, (Iterator[(Int, Model)] 
instead of Seq[Model]). I was trying to be consistent with Estimator.fit which 
uses the name `params` which is different than the name of the same argument in 
Scala :/. Happy to change it.


---

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

Reply via email to