Skip to content

Fix: Update model.fit_generator to model.fit#107

Open
jamesruga wants to merge 1 commit intogoogle:mainfrom
jamesruga:patch-2
Open

Fix: Update model.fit_generator to model.fit#107
jamesruga wants to merge 1 commit intogoogle:mainfrom
jamesruga:patch-2

Conversation

@jamesruga
Copy link

The method 'fit_generator' has been deprecated in recent versions of TensorFlow/Keras. The recommended method for training a model with a data generator is now 'fit'.

Update the code to use 'model.fit' instead of 'model.fit_generator'.

Scope: image_classification_part1.ipynb file

The method 'fit_generator' has been deprecated in recent versions of TensorFlow/Keras. The recommended method for training a model with a data generator is now 'fit'.

Update the code to use 'model.fit' instead of 'model.fit_generator'.

Scope: image_classification_part1.ipynb file
"outputs": [],
"source": [
"history = model.fit_generator(\n",
"history = model.fit(\n",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change fit_generator to fit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant