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

    https://github.com/apache/spark/pull/20095#discussion_r186381507
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/Estimator.scala ---
    @@ -79,7 +82,52 @@ abstract class Estimator[M <: Model[M]] extends 
PipelineStage {
        */
       @Since("2.0.0")
       def fit(dataset: Dataset[_], paramMaps: Array[ParamMap]): Seq[M] = {
    --- End diff --
    
    Seemingly we should use the following note to deprecate it:
    """
    .. note:: Deprecated in 2.3.0. Use :func:`Estimator.fitMultiple` instead.
    """
    and like other places, add a warning
    ```
    warnings.warn("Deprecated in 2.3.0. Use Estimator.fitMultiple instead.", 
DeprecationWarning)
    ```
    ?


---

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

Reply via email to