@@ -423,10 +423,10 @@ class LogisticRegressionSuite extends FunSuite with MLlibTestSparkContext {
423
423
val interceptR = 0.57734851
424
424
val weightsR = Array (- 0.05310287 , 0.0 , - 0.08849250 , - 0.15458796 )
425
425
426
- assert(model.intercept ~== interceptR relTol 1E-2 )
427
- assert(model.weights(0 ) ~== weightsR(0 ) relTol 1E-2 )
426
+ assert(model.intercept ~== interceptR relTol 6E-3 )
427
+ assert(model.weights(0 ) ~== weightsR(0 ) relTol 5E-3 )
428
428
assert(model.weights(1 ) ~== weightsR(1 ) relTol 1E-3 )
429
- assert(model.weights(2 ) ~== weightsR(2 ) relTol 1E-2 )
429
+ assert(model.weights(2 ) ~== weightsR(2 ) relTol 5E-3 )
430
430
assert(model.weights(3 ) ~== weightsR(3 ) relTol 1E-3 )
431
431
}
432
432
@@ -492,7 +492,7 @@ class LogisticRegressionSuite extends FunSuite with MLlibTestSparkContext {
492
492
val interceptTheory = Math .log(histogram(1 ).toDouble / histogram(0 ).toDouble)
493
493
val weightsTheory = Array (0.0 , 0.0 , 0.0 , 0.0 )
494
494
495
- assert(model.intercept ~== interceptTheory relTol 1E-3 )
495
+ assert(model.intercept ~== interceptTheory relTol 1E-5 )
496
496
assert(model.weights(0 ) ~== weightsTheory(0 ) absTol 1E-6 )
497
497
assert(model.weights(1 ) ~== weightsTheory(1 ) absTol 1E-6 )
498
498
assert(model.weights(2 ) ~== weightsTheory(2 ) absTol 1E-6 )
@@ -518,7 +518,7 @@ class LogisticRegressionSuite extends FunSuite with MLlibTestSparkContext {
518
518
val interceptR = - 0.248065
519
519
val weightsR = Array (0.0 , 0.0 , 0.0 , 0.0 )
520
520
521
- assert(model.intercept ~== interceptR relTol 1E-3 )
521
+ assert(model.intercept ~== interceptR relTol 1E-5 )
522
522
assert(model.weights(0 ) ~== weightsR(0 ) absTol 1E-6 )
523
523
assert(model.weights(1 ) ~== weightsR(1 ) absTol 1E-6 )
524
524
assert(model.weights(2 ) ~== weightsR(2 ) absTol 1E-6 )
0 commit comments