h2o.hit_ratio_table | R Documentation |
If "train", "valid", and "xval" parameters are FALSE (default), then the training Hit Ratios value is returned. If more than one parameter is set to TRUE, then a named list of Hit Ratio tables are returned, where the names are "train", "valid" or "xval".
h2o.hit_ratio_table(object, train = FALSE, valid = FALSE, xval = FALSE)
object |
An H2OModel object. |
train |
Retrieve the training Hit Ratio |
valid |
Retrieve the validation Hit Ratio |
xval |
Retrieve the cross-validation Hit Ratio |
## Not run:
library(h2o)
h2o.init()
f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/iris/iris_wheader.csv"
iris <- h2o.importFile(f)
iris_split <- h2o.splitFrame(data = iris, ratios = 0.8, seed = 1234)
train <- iris_split[[1]]
valid <- iris_split[[2]]
iris_xgb <- h2o.xgboost(x = 1:4, y = 5, training_frame = train, validation_frame = valid)
hrt_iris <- h2o.hit_ratio_table(iris_xgb, valid = TRUE)
hrt_iris
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.