Our code examples are short (less than 300 lines of code), focused demonstrations of vertical deep learning workflows.
All of our examples are written as Jupyter notebooks and can be run in one click in Google Colab, a hosted notebook environment that requires no setup and runs in the cloud. Google Colab includes GPU and TPU runtimes.
We welcome new code examples! Here are our rules:
New examples are added via Pull Requests to the keras.io repository.
They must be submitted as a .py
file that follows a specific format. They are usually generated from Jupyter notebooks.
See the tutobooks
documentation for more details.
If you would like to convert a Keras 2 example to Keras 3, please open a Pull Request to the keras.io repository.