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

    https://github.com/apache/spark/pull/19185#discussion_r138220297
  
    --- Diff: python/pyspark/ml/classification.py ---
    @@ -528,9 +528,11 @@ def summary(self):
             trained on the training set. An exception is thrown if 
`trainingSummary is None`.
             """
             if self.hasSummary:
    -            java_blrt_summary = self._call_java("summary")
    -            # Note: Once multiclass is added, update this to return 
correct summary
    -            return 
BinaryLogisticRegressionTrainingSummary(java_blrt_summary)
    +            java_lrt_summary = self._call_java("summary")
    +            if (self.numClasses <= 2):
    --- End diff --
    
    nit: remove parentheses


---

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

Reply via email to