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

    https://github.com/apache/spark/pull/18035#discussion_r117464991
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/r/LinearSVCWrapper.scala 
---
    @@ -38,9 +38,17 @@ private[r] class LinearSVCWrapper private (
       private val svcModel: LinearSVCModel =
         pipeline.stages(1).asInstanceOf[LinearSVCModel]
     
    -  lazy val coefficients: Array[Double] = svcModel.coefficients.toArray
    +  lazy val rFeatures: Array[String] = if (svcModel.getFitIntercept) {
    +    Array("(Intercept)") ++ features
    --- End diff --
    
    In R we stack ```intercept``` with other feature names, you can refer 
spark.glm, spark.logit, spark.survreg.


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