Skip to content

Commit ef65adc

Browse files
committed
fix test issue
1 parent 6cbc62f commit ef65adc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

R/pkg/NAMESPACE

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,6 @@ export("partitionBy",
402402
export("windowPartitionBy",
403403
"windowOrderBy")
404404

405-
export("tweedie")
406-
407405
S3method(print, jobj)
408406
S3method(print, structField)
409407
S3method(print, structType)

R/pkg/R/mllib_regression.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ setClass("IsotonicRegressionModel", representation(jobj = "jobj"))
4747
#' @return a list for internal use in spark.glm
4848
tweedie <- function(var.power = 0.0, link.power = 1.0 - var.power) {
4949
list(family = "tweedie",
50-
variance = function (mu) mu^var.power,
51-
linkfun = function (mu) mu^link.power,
50+
variance = function(mu) mu ^ var.power,
51+
linkfun = function(mu) mu ^ link.power,
5252
link = paste("mu^", as.character(link.power), sep = ""))
5353
}
5454

0 commit comments

Comments
 (0)