In this section, we will develop an image classification model to classify the images of the bicycles, cars, and airplanes. We will first specify a model architecture, then we will compile the model, and then fit the model using training and validation data.
Creating and fitting the model
Developing the model architecture
When developing the model architecture, we start by creating a sequential model and then add various layers. The following is the code:
# Model architecture
model <- keras_model_sequential()
model %>%
layer_dense(units = 256, activation = 'relu', input_shape = c(2352)) %>%
layer_dense(units = 128, activation = 'relu') %>%
layer_dense(units = 3, activation = 'softmax...