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

    https://github.com/apache/spark/pull/11928#discussion_r57383969
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
 ---
    @@ -539,13 +539,14 @@ class LogisticRegressionModel private[spark] (
       def hasSummary: Boolean = trainingSummary.isDefined
     
       /**
    -   * Evaluates the model on a testset.
    +   * Evaluates the model on a test dataset.
        * @param dataset Test dataset to evaluate model on.
        */
    -  // TODO: decide on a good name before exposing to public API
    -  private[classification] def evaluate(dataset: DataFrame): 
LogisticRegressionSummary = {
    -    new BinaryLogisticRegressionSummary(
    -      this.transform(dataset), $(probabilityCol), $(labelCol), 
$(featuresCol))
    +  def evaluate(dataset: DataFrame): LogisticRegressionSummary = {
    +    // Handle possible missing or invalid prediction columns
    +    val (summaryModel, probabilityColName) = 
this.findSummaryModelAndProbabilityCol()
    --- End diff --
    
    nit: using `this` isn't necessary


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to