The generator should return the same kind of data as accepted by predict_on_batch().

predict_generator(object, generator, steps, max_queue_size = 10,
  verbose = 0)

Arguments

object

Keras model object

generator

Generator yielding batches of input samples.

steps

Total number of steps (batches of samples) to yield from generator before stopping.

max_queue_size

Maximum size for the generator queue.

verbose

verbosity mode, 0 or 1.

Value

Numpy array(s) of predictions.

Raises

ValueError: In case the generator yields data in an invalid format.

See also

Other model functions: compile, evaluate_generator, evaluate, fit_generator, fit, get_config, get_layer, keras_model_sequential, keras_model, pop_layer, predict.keras.engine.training.Model, predict_on_batch, predict_proba, summary.keras.engine.training.Model, train_on_batch