February 2020
Intermediate to advanced
328 pages
8h 19m
English
Now, we can build our first sequential keras model and train it:
model_sequential <- keras_model_sequential()
model_sequential %>% layer_dense(units = 16,batch_size = ,input_shape = c(784)) %>% layer_activation('relu') %>% layer_dense(units = 1)
model_sequential %>% compile( loss = "mse", optimizer = optimizer_sgd(), metrics = list("mean_absolute_error"))
model_sequential %>% summary()
The summary of the model is as follows:
Read now
Unlock full access