The generator is run in parallel to the model, for efficiency. For instance, this allows you to do real-time data augmentation on images on CPU in parallel to training your model on GPU.
fit_generator(object, generator, steps_per_epoch, epochs = 1, verbose = 1, callbacks = NULL, validation_data = NULL, validation_steps = NULL, class_weight = NULL, max_queue_size = 10, initial_epoch = 0)
Keras model object
The output of the generator must be a list of one of these forms:
- (inputs, targets) - (inputs, targets, sample_weights)
All arrays should contain the same number of samples. The generator is expected
to loop over its data indefinitely. An epoch finishes when
Total number of steps (batches of samples) to yield
integer, total number of iterations on the data.
verbosity mode, 0, 1, or 2.
list of callbacks to be called during training.
this can be either:
Only relevant if
dictionary mapping class indices to a weight for the class.
maximum size for the generator queue
epoch at which to start training (useful for resuming a previous training run)
Training history object (invisibly)
Other model functions: