1 model.fit_generator(self,generator, steps_per_epoch, epochs=1, verbose=1, callbacks=None, validation_data=None, validation_steps=None, class_weight=None, max_q_size=10, workers=1, pickle_safe=False, initial_epoch=0) 利用Python的生成器,逐个生成数据的batch并进行训练.生…