Change to follow the change of Keras v3.5.0
Description
Keras has introduced a new way of what/how get_file() returns since v3.5.0 with this commit. Therefore, the tutorial is not working anymore with the latest TensorFlow with the affected Keras, for instance, TensorFlow v2.18.0 and Keras v3.8.0 are currently installed in Colab and it failed to get the data file as in the screenshot below.
It could be dealt with in the better way to consider the older versions, though, it's a bit off-track from the tutorial's purpose itself. So, this PR starts from the shortest version.
Please feel free to correct me. I'm usually making a mistake. Thank you! :D
References
- https://github.com/keras-team/keras/compare/v3.5.0...master
- https://github.com/keras-team/keras/commit/dcefb139863505d166dd1325066f329b3033d45a
Preview
Preview and run these notebook edits with Google Colab: Rendered notebook diffs available on ReviewNB.com.Format and style
Use the TensorFlow docs notebook tools to format for consistent source diffs and lint for style:$ python3 -m pip install -U --user git+https://github.com/tensorflow/docsIf commits are added to the pull request, synchronize your local branch:
$ python3 -m tensorflow_docs.tools.nbfmt notebook.ipynb
$ python3 -m tensorflow_docs.tools.nblint --arg=repo:tensorflow/docs notebook.ipynb
git pull origin patch/change-to-follow-the-change-of-keras-v3.5.0
@MarkDaoust @markmcd PTAL
Dear @8bitmp3 @MarkDaoust @markmcd , Please feel free to close this PR if you have another plan, or let me know if you want me to close this. ;) Thank you.