h2o 中的 AutoML
h2o 的一个非常方便的功能是自动化机器学习(AutoML)。
h2o 库和 seeds_train_data 已为您加载,并且已经运行了以下代码:
h2o.init()
seeds_train_data_hf <- as.h2o(seeds_train_data)
y <- "seed_type"
x <- setdiff(colnames(seeds_train_data_hf), y)
seeds_train_data_hf[, y] <- as.factor(seeds_train_data_hf[, y])
sframe <- h2o.splitFrame(seeds_train_data_hf, seed = 42)
train <- sframe[[1]]
valid <- sframe[[2]]
本练习是课程的一部分
R 中的超参数调优
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Run automatic machine learning
automl_model <- ___(x = x,
y = y,
training_frame = train,
___ = 10,
seed = 42)