Skip to content

Commit 0d722fd

Browse files
committed
fix style issue
1 parent fb66ce0 commit 0d722fd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

R/pkg/inst/tests/testthat/test_mllib_regression.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ test_that("spark.glm and predict", {
8383
prediction <- predict(model, training)
8484
expect_equal(typeof(take(select(prediction, "prediction"), 1)$prediction), "double")
8585
vals <- collect(select(prediction, "prediction"))
86+
8687
# manual calculation of the R predicted values to avoid dependence on statmod
87-
# library(statmod)
88-
# rModel <- glm(Sepal.Width ~ Sepal.Length + Species, data = iris,
89-
# family = tweedie(var.power = 1.2, link.power = 1.0))
90-
# print(coef(rModel))
88+
#' library(statmod)
89+
#' rModel <- glm(Sepal.Width ~ Sepal.Length + Species, data = iris,
90+
#' family = tweedie(var.power = 1.2, link.power = 1.0))
91+
#' print(coef(rModel))
92+
9193
rCoef <- c(1.7009682, 0.3436700, -0.9703189, -0.9852648)
9294
rVals <- as.numeric(model.matrix(Sepal.Width ~ Sepal.Length + Species,
9395
data = iris) %*% rCoef)

0 commit comments

Comments
 (0)