Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/rel-3.46.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
h2o-ops committed Nov 1, 2024
2 parents c7361bb + 6f19a16 commit 8954cfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions h2o-bindings/bin/custom/R/gen_hglm.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
# build a HGLM model with prostate dataset
prostate_path <- system.file("extdata", "prostate.csv", package = "h2o")
prostate <- h2o.uploadFile(path = prostate_path)
prostate$CAPSULE <- as.factor(prostate$CAPSULE)
prostate$RACE <- as.factor(prostate$RACE)
model <- h2o.hglm(y="VOL", x=c("AGE","RACE","DPROS"), random_columns = ["AGE"], group_column = "RACE", training_frame=prostate)
model <- h2o.hglm(y="VOL", x=c("AGE","RACE","DPROS"), random_columns = ["AGE"],
group_column = "RACE", training_frame=prostate)
"""
)
4 changes: 2 additions & 2 deletions h2o-r/h2o-package/R/hglm.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
#' # build a HGLM model with prostate dataset
#' prostate_path <- system.file("extdata", "prostate.csv", package = "h2o")
#' prostate <- h2o.uploadFile(path = prostate_path)
#' prostate$CAPSULE <- as.factor(prostate$CAPSULE)
#' prostate$RACE <- as.factor(prostate$RACE)
#' model <- h2o.hglm(y="VOL", x=c("AGE","RACE","DPROS"), random_columns = ["AGE"], group_column = "RACE", training_frame=prostate)
#' model <- h2o.hglm(y="VOL", x=c("AGE","RACE","DPROS"), random_columns = ["AGE"],
#' group_column = "RACE", training_frame=prostate)
#'
#' }
#' @export
Expand Down

0 comments on commit 8954cfc

Please sign in to comment.