model.fit(train_dataset, epochs=10, steps_per_epoch=3, validation_dataset code example Example: keras model.fit function model.fit(trainX, trainY, batch_size=32, epochs=50)