Skip to content

Commit

Permalink
Messed up the indices in an example
Browse files Browse the repository at this point in the history
  • Loading branch information
anqi committed Oct 5, 2013
1 parent 279dfdd commit 2cebcbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions R/h2o-package/demo/h2o.gbm.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ print(prostate.gbm)
prostate.gbm2 = h2o.gbm(x = c("AGE", "RACE", "PSA", "VOL", "GLEASON"), y = "CAPSULE", data = prostate.hex, n.trees = 10, interaction.depth = 8, n.minobsinnode = 10, shrinkage = 0.2)
print(prostate.gbm2)

#This is a demo of H2O's GBM use of default parameters on iris dataset(three classes)

# This is a demo of H2O's GBM use of default parameters on iris dataset (three classes)
iris.hex = h2o.importFile(localH2O, system.file("extdata", "iris.csv", package="h2o"), "iris.hex")
summary(iris.hex)
iris.gbm = h2o.gbm(x = 1:4, y = 5, data = iris.hex)
Expand Down
2 changes: 1 addition & 1 deletion R/h2o-package/demo/h2o.randomForest.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ h2o.checkClient(localH2O)

iris.hex = h2o.importFile(localH2O, path = system.file("extdata", "iris.csv", package="h2o"), key = "iris.hex")
summary(iris.hex)
iris.rf = h2o.randomForest(y = 4, x = c(1,2,3), data = iris.hex, ntree = 50, depth = 100, classwt = c("Iris-versicolor" = 20.0, "Iris-virginica" = 30.0))
iris.rf = h2o.randomForest(y = 5, x = c(1,2,3,4), data = iris.hex, ntree = 50, depth = 100, classwt = c("Iris-versicolor" = 20.0, "Iris-virginica" = 30.0))
print(iris.rf)

invisible(readline("Hit <Return> to continue: "))
Expand Down

0 comments on commit 2cebcbc

Please sign in to comment.