我正在尝试运行 h2o.deeplearning 两次,在 2 个火车组上使用检查点参数(使用相同的参数,除了不同的时期)。我收到以下错误:
错误:'训练数据的列必须与检查点模型的列相同
即使两个集合都有相同的列。下面附上相关代码:
model <- h2o.deeplearning(x = 2:785, y = 1, training_frame = train1,
activation = "RectifierWithDropout",
hidden = c(1024,1024,2048),
epochs = 10,
l1 = 1e-5,
input_dropout_ratio = 0.2,
train_samples_per_iteration = -1,
classification_stop = -1)
model2 <- h2o.deeplearning(x = 2:785, y = 1, training_frame = train2,
checkpoint = model@model_id,
activation = "RectifierWithDropout",
hidden = c(1024,1024,2048),
epochs = 1000,
l1 = 1e-5,
input_dropout_ratio = 0.2,
train_samples_per_iteration = -1,
classification_stop = -1)
> all(colnames(train1)==colnames(train2))
[1] TRUE
> dim(train1)
[1] 54447 785
> dim(train2)
[1] 5553 785
谢谢,伊莱。