How to use Keras fit and fit_generator (a hands-on tutorial)