Help me finding error nb_epoch = 1 samples_per_epoch = 132 nb_val_samples = 36 # #save every model using Keras checkpoint from keras.callbacks import ModelCheckpoint filepath="gdrive/My Drive/check-{epoch:02d}-{val_loss:.4f}.hdf5" checkpoint = ModelCheckpoint(filepath= filepath, verbose=1, save_best_only=False) callbacks_list = [checkpoint] #Model fit generator 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) TypeError Traceback (most recent call last) in () 14 history_object = model.fit_generator(train_generator, samples_per_epoch= samples_per_epoch, 15 validation_data=validation_generator, ---> 16 nb_val_samples=nb_val_samples, nb_epoch=nb_epoch, verbose=1, callbacks=callbacks_list) /usr/local/lib/python3.6/dist-packages/tensorflow/python/util/deprecation.py in new_func(*args, **kwargs) 322 'in a future version' if date is None else ('after %s' % date), 323 instructions) --> 324 return func(*args, **kwargs) 325 return tf_decorator.make_decorator( 326 func, new_func, 'deprecated', TypeError: fit_generator() got an unexpected keyword argument 'samples_per_epoch'
Answers
Answered by
0
bakchodi:
bhai thoda chota question hai par iska answer bada hai
chal hat bkl.........
Similar questions