I am a beginner of keras and tensorflow. I bought the book, Deep learning in R' and tried to follow the example code.

But here, I am wondering after I made the model using 'keras_model_sequential'. I did complied model and all ex code said about checking the history with 'fit' or 'fit_generator' lilke

history <- model %>% fit_generator(

train_gen,

steps_per_epoch = 500,

epoch = 20,

validation_data = val_gen,

validation_steps = val_steps

)

then? then what? where is the prediction? how can I predict other data or test data?

maybe it is silly question, but please help me understand.