Skip to content

Commit 39317c1

Browse files
committed
Update test case.
1 parent 1ed3ba0 commit 39317c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/pkg/inst/tests/testthat/test_mllib_classification.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ test_that("spark.svmLinear", {
3838
expect_true(class(summary$coefficients[, 1]) == "numeric")
3939

4040
coefs <- summary$coefficients[, "Estimate"]
41-
expected_coefs <- c(-0.1563083, -0.460648, 0.2276626, 1.055085)
41+
expected_coefs <- c(-0.06004978, -0.1563083, -0.460648, 0.2276626, 1.055085)
4242
expect_true(all(abs(coefs - expected_coefs) < 0.1))
43-
expect_equal(summary$intercept, -0.06004978, tolerance = 1e-2)
4443

4544
# Test prediction with string label
4645
prediction <- predict(model, training)

0 commit comments

Comments
 (0)