how use grid search with fit generator in keras
i want to grid search the parameter of the model with fit_generator as input in keras i find below code in stack overflow and change it 1- but i don't understand how give the fit_generator or flow_from_directory to fit function(last line in the code) 2- how can add early stop? thanks from __future__ import print_function import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.wrappers.scikit_learn import KerasClassifier from keras import backend as K