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

    https://github.com/apache/spark/pull/7080#discussion_r33752237
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/ml/classification/LogisticRegressionSuite.scala
 ---
    @@ -292,20 +317,51 @@ class LogisticRegressionSuite extends SparkFunSuite 
with MLlibTestSparkContext {
          * data.V4     -0.04325749
          * data.V5     -0.02481551
          */
    -    val interceptR = -0.05627428
    -    val weightsR = Array(0.0, 0.0, -0.04325749, -0.02481551)
    -
    -    assert(model.intercept ~== interceptR relTol 1E-2)
    -    assert(model.weights(0) ~== weightsR(0) relTol 1E-3)
    -    assert(model.weights(1) ~== weightsR(1) relTol 1E-3)
    -    assert(model.weights(2) ~== weightsR(2) relTol 1E-2)
    -    assert(model.weights(3) ~== weightsR(3) relTol 2E-2)
    +    val interceptR1 = -0.05627428
    +    val weightsR1 = Array(0.0, 0.0, -0.04325749, -0.02481551)
    +
    +    assert(model1.intercept ~== interceptR1 relTol 1E-2)
    +    assert(model1.weights(0) ~== weightsR1(0) absTol 1E-3)
    +    assert(model1.weights(1) ~== weightsR1(1) absTol 1E-3)
    +    assert(model1.weights(2) ~== weightsR1(2) relTol 1E-2)
    +    assert(model1.weights(3) ~== weightsR1(3) relTol 2E-2)
    +
    +    /**
    +     * Using the following R code to load the data and train the model 
using glmnet package.
    --- End diff --
    
    well. this is big conflict. will update soon.


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