Github user dbtsai 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,
    +    private val isMultinomial: Boolean)
       extends ProbabilisticClassificationModel[Vector, LogisticRegressionModel]
       with LogisticRegressionParams with MLWritable {
    --- End diff --
    Can we have a `require(coefficientMatrix .numRows == 
interceptVector.length)` here?

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