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

    https://github.com/apache/spark/pull/15435#discussion_r113867765
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
 ---
    @@ -1231,6 +1295,109 @@ class BinaryLogisticRegressionSummary 
private[classification] (
       }
     }
     
    +sealed trait BinaryLogisticRegressionTrainingSummary extends 
BinaryLogisticRegressionSummary
    +  with LogisticRegressionTrainingSummary
    +
    +/**
    + * :: Experimental ::
    + * Multiclass logistic regression training results.
    + *
    + * @param predictions dataframe output by the model's `transform` method.
    + * @param probabilityCol field in "predictions" which gives the 
probability of
    + *                       each class as a vector.
    + * @param predictionCol field in "predictions" which gives the prediction 
for a data instance as a
    + *                      double.
    + * @param labelCol field in "predictions" which gives the true label of 
each instance.
    + * @param featuresCol field in "predictions" which gives the features of 
each instance as a vector.
    + * @param objectiveHistory objective function (scaled loss + 
regularization) at each iteration.
    + */
    +@Experimental
    +@Since("2.2.0")
    +private class LogisticRegressionTrainingSummaryImpl(
    +    override val predictions: DataFrame,
    +    override val probabilityCol: String,
    +    override val predictionCol: String,
    +    override val labelCol: String,
    +    override val featuresCol: String,
    +    @Since("1.5.0") val objectiveHistory: Array[Double])
    +  extends LogisticRegressionSummaryImpl(
    +    predictions, probabilityCol, predictionCol, labelCol, featuresCol)
    +  with LogisticRegressionTrainingSummary {
    +
    +}
    +
    +/**
    + * :: Experimental ::
    + * Multiclass Logistic regression results for a given model.
    --- End diff --
    
    @sethah I have a small problem, if I do not squash commits, it seems cannot 
solve the conflicts...


---
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