Grid-class | R Documentation |
constructors for Grid
S4 object
create_Grid.H2OGrid(obj)
create_Grid.H2OAutoML(obj)
create_Grid.Grid(obj)
create_Grid(obj)
obj |
A |
Creates Grid
S4 object from a H2OGrid
or H2OAutoML
object. This object
is used as the grid
element in a nano
object. The Grid
object holds useful
information about the input object which will be used by other functions.
a Grid
S4 object.
## Not run:
if(interactive()){
library(h2o)
library(nano)
h2o.init()
# import dataset
data(property_prices)
train <- as.h2o(property_prices)
# set the response and predictors
response <- "sale_price"
var <- setdiff(colnames(property_prices), response)
# build grids
grid_1 <- h2o.grid(x = var,
y = response,
training_frame = train,
algorithm = "randomForest",
hyper_params = list(ntrees = 1:2),
nfolds = 3,
seed = 628)
Grid_1 <- create_Grid(grid_1)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.