##import all library like tensorflow,keras,Sequential ,conv2d,........
classifier = Sequential()
#cnn model
classifier.add(conv2d(..............................................)
-----------------------------
there are a problem in sub code in the following say the classifier is not defined what is the correct code to training the cnn model ?
classifier.fit(train,
steps_per_epoch = len(train) ,
epochs=1,
validation_data = val,
validation_steps = len(val) )