Skip to content

Commit

Permalink
disable indeterminate test case
Browse files Browse the repository at this point in the history
  • Loading branch information
yanboliang committed Oct 23, 2015
1 parent a64f71d commit 2e8bc28
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions R/pkg/inst/tests/test_mllib.R
Expand Up @@ -56,14 +56,3 @@ test_that("feature interaction vs native glm", {
rVals <- predict(glm(Sepal.Width ~ Species:Sepal.Length, data = iris), iris)
expect_true(all(abs(rVals - vals) < 1e-6), rVals - vals)
})

test_that("summary coefficients match with native glm", {
training <- createDataFrame(sqlContext, iris)
stats <- summary(glm(Sepal_Width ~ Sepal_Length + Species, data = training))
coefs <- as.vector(stats$coefficients)
rCoefs <- as.vector(coef(glm(Sepal.Width ~ Sepal.Length + Species, data = iris)))
expect_true(all(abs(rCoefs - coefs) < 1e-6))
expect_true(all(
as.character(stats$features) ==
c("(Intercept)", "Sepal_Length", "Species_versicolor", "Species_virginica")))
})

0 comments on commit 2e8bc28

Please sign in to comment.