Skip to content

Commit

Permalink
reduce example width of hglm.R (#16446)
Browse files Browse the repository at this point in the history
Co-authored-by: wendycwong <wendy.wong@h2o.ai>
  • Loading branch information
wendycwong and wendycwong authored Nov 1, 2024
1 parent 6a8f800 commit 6f19a16
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 6f19a16

Please sign in to comment.