Github user sethah commented on a diff in the pull request:
    --- Diff: 
    @@ -508,11 +680,51 @@ object LogisticRegression extends 
DefaultParamsReadable[LogisticRegression] {
     class LogisticRegressionModel private[spark] (
         @Since("1.4.0") override val uid: String,
    -    @Since("2.0.0") val coefficients: Vector,
    -    @Since("1.3.0") val intercept: Double)
    +    @Since("2.1.0") val coefficientMatrix: Matrix,
    +    @Since("2.1.0") val interceptVector: Vector,
    +    @Since("1.3.0") override val numClasses: Int,
    --- End diff --
    Actually that won't work under the current edge case behaviors. When the 
labels are all `0.0` then the coefficient matrix will have only one row 
regardless of multinomial or binomial. We could potentially change this 
behavior though, as if we always assume there will be at minimum two classes. 

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to