Skip to content

Commit

Permalink
Cut down Cran examples more
Browse files Browse the repository at this point in the history
  • Loading branch information
raoariel committed Aug 7, 2014
1 parent aae0340 commit 28b7941
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/h2o-package/man/h2o.gbm.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ australia.hex = h2o.importFile(localH2O, path = ausPath)
independent <- c("premax", "salmax","minairtemp", "maxairtemp", "maxsst",
"maxsoilmoist", "Max_czcs")
dependent <- "runoffnew"
h2o.gbm(y = dependent, x = independent, data = australia.hex, n.trees = 10, interaction.depth = 3,
h2o.gbm(y = dependent, x = independent, data = australia.hex, n.trees = 5, interaction.depth = 3,
n.minobsinnode = 2, shrinkage = 0.2, distribution= "gaussian")

# Run multinomial classification GBM on australia data
h2o.gbm(y = dependent, x = independent, data = australia.hex, n.trees = 10, interaction.depth = 3,
h2o.gbm(y = dependent, x = independent, data = australia.hex, n.trees = 5, interaction.depth = 3,
n.minobsinnode = 2, shrinkage = 0.01, distribution= "multinomial")
}
2 changes: 2 additions & 0 deletions R/h2o-package/man/h2o.importURL.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ If \code{parse = TRUE}, the function returns an object of class \code{\linkS4cla
\code{\link{h2o.importFile}, \link{h2o.importFolder}, \link{h2o.importHDFS}, \link{h2o.uploadFile}}
}
\examples{
\dontrun{
library(h2o)
localH2O = h2o.init(ip = "localhost", port = 54321, startH2O = TRUE)
prostate.hex = h2o.importURL(localH2O, path = paste("https://raw.github.com",
"0xdata/h2o/master/smalldata/logreg/prostate.csv", sep = "/"), key = "prostate.hex")
class(prostate.hex)
summary(prostate.hex)
}
}
1 change: 0 additions & 1 deletion R/h2o-package/man/h2o.init.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,5 @@ Once the package is successfully installed, this method will load it and return
\examples{
# Try to create a localhost connection to H2O.
localH2O = h2o.init()
localH2O = h2o.init(ip = "localhost", port = 54321)
localH2O = h2o.init(ip = "localhost", port = 54321, startH2O = FALSE)
}

0 comments on commit 28b7941

Please sign in to comment.