title: How can I plot AUC and ROC while using fit_generator and evaluate_generator to train my network?
body: <p>I am using a generator to train and predict classification on my data. Here is an example of <a href="https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html" rel="nofollow noreferrer">ImageDataGenerator</a></p>
  <pre><code>from keras.preprocessing.image import ImageDataGenerator
  
  batch_size = 16
  
  train_datagen = ImageDataGenerator(
          rescale=1./255,
          shear_range=0.2,
          zoom_range=0.2,
          horizontal_flip=True)
  
  test_datagen = ImageDataGenerator(rescale=1./255)
  
  
  train_generator = train_datagen.flow_from_directory(
          'data/train',  # this is the target directory
          target_size=(150, 150),  
          batch_size=batch_size,
          class_mode='binary') 
  
  validation_generator = test_datagen.flow_from_directory(
          'data/validation',
          target_size=(150, 150),
          batch_size=batch_size,
          class_mode='binary')
         
  
  model.fit_generator(
          train_generator,
          steps_per_epoch=2000 // batch_size,
          epochs=50,
          validation_data=validation_generator,
          validation_steps=800 // batch_size)
  model.save_weights('first_try.h5')  # always save your weights after training or during training
  </code></pre>
  <p>My question how can I create <a href="https://hackernoon.com/simple-guide-on-how-to-generate-roc-plot-for-keras-classifier-2ecc6c73115a" rel="nofollow noreferrer">AUC and ROC</a> when I use <code>fit_generator</code>?</p>