title: Type-error: fit_generator() got an unexpected keyword argument 'samples_per_epoch'
body: <p>defining the samples per epoch = 233 and nb_val_samples = 62 and epochs =4 then in am getting the error</p>
  <blockquote>
  <p>Type-error: fit_generator() got an unexpected keyword argument 'samples_per_epoch'</p>
  </blockquote>
  <p>What caused this error and how to solve it?</p>
  <pre><code>history_object = model.fit_generator(train_generator, 
       samples_per_epoch=samples_per_epoch,
       validation_data=validation_generator,
       nb_val_samples=nb_val_samples, 
       nb_epoch=nb_epoch, verbose=1,
       callbacks=callbacks_list)
  
  ```
  
   
  </code></pre>