def predict_generator(self, generator, val_samples, max_q_size=10):
        if self.model is None:
            raise Exception('The model needs to be compiled before being used.')
        return self.model.predict_generator(generator, val_samples,
                                            max_q_size=max_q_size)
Generates predictions for the input samples from a data generator.
dataset/ETHPy150Open fchollet/keras/keras/models.py/Sequential.predict_generator