AI GLOSSARY · LOCAL AND OPEN MODELS
Keras
Definition
Keras is an open-source Python library for building and training artificial neural networks. Keras 3 runs on top of JAX, TensorFlow or PyTorch, and OpenVINO for inference only.
Also called: Keras library, Keras Python, Keras TensorFlow, Keras 3, Keras API.
In plain language
Keras is a toolkit that lets a programmer describe a neural network as a stack of building blocks, then train it on data with a couple of commands. Think of it as a set of ready-made parts for a model, where the heavy number-crunching is done by another framework underneath. It is a library for people who write code, not an app or an AI assistant. Its limits are practical: you still have to supply data, choose settings and check the results, and training large models needs suitable hardware, which can cost money. Keras does not make a model accurate; it makes the model easier to write down.
Technical definition
According to the Keras documentation, Keras 3 is a full rewrite that runs Keras workflows on JAX, TensorFlow or PyTorch, with OpenVINO available for inference only. Models are built with the Sequential API, the Functional API or by subclassing. The compile method sets the optimizer, loss function and metrics; fit trains for a number of epochs; evaluate runs the model in test mode and predict produces outputs. Custom code written with keras.ops is described as backend-agnostic across TensorFlow, JAX and PyTorch. Earlier Keras versions used different backend sets.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Skill by Skill Almanac · Illustrative, not executed
data-analysis-eda 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- The skill is a fixed exploratory-analysis procedure and CSV profiler that keeps findings descriptive, evidenced and caveated.
- Why it exercises the concept
- A contrast case. Profiling a CSV is the kind of step that happens before data is fed to a Keras model, but the skill does not build or train one. The catalogue has no training skills, and this is illustrative, not executed.
Skill by Skill Almanac · Illustrative, not executed
split-leakage-check 53/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- The skill checks train, validation and test files for duplicates, shared groups, time and label leakage and prints JSON.
- Why it exercises the concept
- Keras documentation shows a validation split being set aside during fit. This skill checks separately prepared split files and does not call Keras. This is illustrative, not executed.
Guide · Illustrative, not executed
Self-Hosting an AI Agent: What You Take On
- What you see
- A guide on what you take on when an AI agent runs on your own machine: model memory, network exposure, file access and vetting skills.
- Why it exercises the concept
- It covers running models locally, which is a different job from writing a Keras network. It helps a reader separate a framework for building models from the work of hosting an agent. This is illustrative, not executed.
How it shows up when you use agents
Keras appears when an agent writes or edits machine-learning code. If you ask Claude Code, Codex or Cursor for a small image classifier, the code it produces may import keras, define layers, call compile, then call fit. You will see Keras in imports, in a requirements file and in tracebacks, not in the agent's own settings. Keras is a library your project uses; it is not part of the agent.
What breaks when it is misunderstood: the backend. Keras 3 can run on JAX, TensorFlow or PyTorch, and the Keras guide says the backend cannot be changed once the package is imported, so it has to be configured first. An agent that mixes backend-specific calls into a model can produce code that runs on one framework and fails on another. Version also matters, because older tutorials describe earlier Keras releases with a different set of backends.
A practical next step: ask the agent to state which Keras version and backend it assumed, and to keep custom code on the keras.ops namespace if you want it portable. Then check the data split yourself; see Overfitting. Compare the framework entries for TensorFlow and PyTorch. The catalogue has no skill that trains models, so the examples are contrast cases.
Common confusions
- Keras versus TensorFlow. Keras is a library with its own API. According to Wikipedia it was first independent software, was later integrated into TensorFlow and later added support for more backends. Keras 3 runs on TensorFlow, JAX or PyTorch.
- Keras versus a model. Keras is the tool for building and training a model. A trained network is a separate artefact; see Machine learning model.
- Keras 3 versus older Keras. Wikipedia describes versions 2.4 through 3.0 as supporting just TensorFlow, then multi-backend again from 3.0. Check the version before copying a tutorial.
- Myth: compile trains the model. Per the Keras docs, compile configures the model for training, and fit does the training.
Related terms
Terms that mention Keras
More in Local and open models
Sources
- Keras 3 API documentation: Keras 3 is here, Keras (accessed 2026-11-24)
- Introduction to Keras for engineers, Keras (accessed 2026-11-24)
- Model training APIs, Keras (accessed 2026-11-24)
- Keras, Wikipedia (accessed 2026-11-24)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.
Review record
Last verified
Drafted by claude-sonnet-5-5; sources and example targets checked by claude-haiku-5-5 source check; claude-sonnet-5-5 editor pass on 2026-11-24. Last verified .
This entry is still in review, so it is not listed in search engines yet.
Change log (2)
- : First version.
- : Verifier pass: corrected claims flagged by verifier against cited sources.