keras-team/keras-io is tracked by TopGit as an open-source project, with 3.0k stars on GitHub, written primarily in Jupyter Notebook. Keras documentation, hosted live at keras.io
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
It will take a while the first time because it's going to pull the
image and the dependencies, but on the next times it'll be much faster.
Another way of testing using Docker is via our Makefile:
make container-test
This command will build a Docker image with a documentation server and run it.
Call for examples
Are you interested in submitting new examples for publication on keras.io?
We welcome your contributions!
Please read the information below about adding new code examples.
We are currently interested in the following examples.
Fixing something in an existing code example
Fixing typos
If your fix is very simple, please send out a PR simultaneously updating
the .py, the .md, and the .ipynb files for the example.
More extensive fixes
For larger fixes, please send a PR that only includes the .py file,
so we only update the other two files once the code has been reviewed
and approved.
Adding a new code example
Keras code examples are implemented as tutobooks.
A tutobook is a script available simultaneously as a notebook,
as a Python file, and as a nicely-rendered webpage.
Its source-of-truth (for manual edition and version control) is
its Python script form, but you can also create one by starting
from a notebook and converting it with the command nb2py.
Text cells are stored in markdown-formatted comment blocks.
the first line (starting with """) may optionally contain a special
annotation, one of:
shell: execute this block while prefixing each line with !.
invisible: do not render this block.
The script form should start with a header with the following fields:
Title: (title)
Author: (could be `Authors`: as well, and may contain markdown links)
Date created: (date in yyyy/mm/dd format)
Last modified: (date in yyyy/mm/dd format)
Description: (one-line text description)
Accelerator: (could be GPU, TPU, or None)
To see examples of tutobooks, you can check out any .py file in examples/ or guides/.
Creating a new example starting from a ipynb file
Save the ipynb file to local disk.
Convert the file to a tutobook by running:
(assuming you are in the scripts/ directory)
This will create the file examples/vision/script_name.py.
Open it, fill in the headers, and generally edit it so that it looks nice.
NOTE THAT THE CONVERSION SCRIPT MAY MAKE MISTAKES IN ITS ATTEMPTS
TO SHORTEN LINES. MAKE SURE TO PROOFREAD THE GENERATED .py IN FULL.
Or alternatively, make sure to keep your lines reasonably-sized (<90 char)
to start with, so that the script won't have to shorten them.
Run python autogen.py add_example vision/script_name. This will generate an ipynb and markdown
rendering of your example, creating files in examples/vision/ipynb,
examples/vision/md, and examples/vision/img. Do not modify any of these files by hand; only the
original Python script should ever be edited manually.
Submit a PR adding examples/vision/script_name.py (only the .py, not the generated files). Get a review and approval.
Once the PR is approved, add to the PR the files created by the add_example command. Then we will merge the PR.
Creating a new example starting from a Python script
Format the script with black: black script_name.py
Add tutobook header
Put the script in the relevant subfolder of examples/ (e.g. examples/vision/script_name)
Run python autogen.py add_example vision/script_name. This will generate an ipynb and markdown
rendering of your example, creating files in examples/vision/ipynb,
examples/vision/md, and examples/vision/img. Do not modify any of these files by hand; only the
original Python script should ever be edited manually.
Submit a PR adding examples/vision/script_name.py (only the .py, not the generated files). Get a review and approval.
Once the PR is approved, add to the PR the files created by the add_example command. Then we will merge the PR.
Previewing a new example
You can locally preview what the example looks like by running:
cd scripts
python autogen.py add_example vision/script_name
(Assuming the tutobook file is examples/vision/script_name.py.)
NOTE THAT THIS COMMAND WILL ERROR OUT IF ANY CELLS TAKES TOO LONG
TO EXECUTE. In that case, make your code lighter/faster.
Remember that examples are meant to demonstrate workflows, not
train state-of-the-art models. They should
stay very lightweight.
Then serving the website:
python autogen.py make
python autogen.py serve
And navigating to 0.0.0.0:8000/examples.
Read-only autogenerated files
The contents of the following folders should not be modified by hand:
TopGit's last sync did not record any GitHub topics for keras-team/keras-io. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on keras-team/keras-io?
The most recent commit recorded on keras-team/keras-io was 1 month ago, based on the GitHub push timestamp. The repository has 2.1k forks — one of the better signals of community interest.
How many stars does keras-team/keras-io have?
keras-team/keras-io has 3.0k GitHub stars — refresh the page for the live number, or check github.com/keras-team/keras-io. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is keras-team/keras-io?
keras-team/keras-io (keras-team/keras-io) is a Jupyter Notebook project on GitHub. From the project's own README: Keras documentation, hosted live at keras.io
What language is keras-team/keras-io written in?
keras-team/keras-io is written primarily in Jupyter Notebook. GitHub's language field is based on the largest share of bytes in the default branch.
Read full README in the tab above.
Is keras-io worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of keras-io.