.

Keras


Reading time: less than 1 minute

Keras is a machine-learning framework written in Python. It’s more like a meta-framework, it wraps multiple back-ends like PyTorch, TensorFlow, and JAX.

Picking a backend

The default backend of Keras is Tensorflow. This can be changed using the KERAS_BACKEND environment variable.

import os
os.environ["KERAS_BACKEND"] = "torch"
import keras

This snippet will use the torch backend.

The following pages link here

Citation

If you find this work useful, please cite it as:
@article{yaltirakli,
  title   = "Keras",
  author  = "Yaltirakli, Gokberk",
  journal = "gkbrk.com",
  year    = "2025",
  url     = "https://www.gkbrk.com/keras"
}
Not using BibTeX? Click here for more citation styles.
IEEE Citation
Gokberk Yaltirakli, "Keras", March, 2025. [Online]. Available: https://www.gkbrk.com/keras. [Accessed Mar. 12, 2025].
APA Style
Yaltirakli, G. (2025, March 12). Keras. https://www.gkbrk.com/keras
Bluebook Style
Gokberk Yaltirakli, Keras, GKBRK.COM (Mar. 12, 2025), https://www.gkbrk.com/keras

Comments

© 2025 Gokberk Yaltirakli