Post

KerasKeras

v
veerubhotla sowmithri

Posted on 26th April 2024|15 views

0
votes

Keras Fit Generator

What is the difference between .fit and .fit_generator in Keras?

Answers
P
Tom 234

Posted on 26th April 2024

When we call .fit()

  • The complete training set can fit within the RAM.
  • It is ok even if we don't use the generators ok Keras.
  • Only raw data will fit into memory.

When we call .fit_generator()

  • Keras first calling the generator function.
  • The generator function gives the batch size 32 to the .fit_generator().
  • The process is repeated for the specified number of epochs.

If you are looking for the Keras certification course, you can check out this Keras course by Mindmajix.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos