【发布时间】:2018-05-02 18:19:06
【问题描述】:
我希望有人向我解释为什么当我使用与训练数据集相同的validation_data 进行训练时,我得到两条不同且不重叠的曲线?
x <- matrix(rnorm(50 * 10), nrow = 50)
y <- matrix(rnorm(50), nrow = 50)
model <- keras_model_sequential()
model %>%
layer_dense(units = 1, input_shape = dim(x)[2]) %>%
layer_dropout(rate = 1) %>%
layer_activation("linear")
model %>% compile(
loss = "mse",
optimizer = "adam",
metrics = "mse"
)
history <- model %>% fit(x, y, batch_size = 1, epochs = 10, verbose = 1, validation_data = list(x, y))
plot(history)
【问题讨论】:
-
你好,FalconUA 回答了我的问题。