After exploring the dataset, it's time to build the CNN model so that it can recognize the articles of clothing and accessories offered for sale by the Zalando online store from images recorded in the dataset. We have just prepared the data. We split the starting data into two sets: training set and test set. The training set will be used to train a classification model and the test set will be used to test the model's performance. To build a model, we will use the Keras Sequential model. Let's start by importing the necessary libraries, as follows:
from keras.models import Sequentialfrom keras.utils import np_utilsfrom keras.layers import Flattenfrom keras.layers import Dense, MaxPool2D, Conv2Dfrom keras.initializers ...