Skip to content
EntityQ28470421· pop 25· linked from 130 articles

Also known as Keras (Python package)

libreria di programmazione con reti neurali

Key facts

Software.name
Keras
Software.logo
Keras_logo.svg
Software.logo size
180px
Software.author
François Chollet
Software.developer
ONEIROS
Software.programming language
Python
Software.platform
Cross-platform
Software.genre
Frontend for TensorFlow, JAX or PyTorch (and more)
Software.license
Apache 2.0

via Wikipedia infobox

Source code

Keras 3 is a multi-backend deep learning framework, with support for JAX, TensorFlow, PyTorch, and OpenVINO (for inference-only). Effortlessly build and train models for computer vision, natural language processing, audio processing, timeseries forecasting, recommender systems, etc. Accelerated model development : Ship deep learning solutions faster thanks to the high-level UX of Keras and the availability of easy-to-debug runtimes like PyTorch or JAX eager execution. State-of-the-art performance : By picking the backend that is the fastest for your model architecture (often JAX!), leverage speedups ranging from 20% to 350% compared to other frameworks. Benchmark here. Datacenter-scale training : Scale confidently from your laptop to large clusters of GPUs or TPUs. Join nearly three million developers, from burgeoning startups to global enterprises, in harnessing the power of Keras 3. Keras 3 is compatible with Linux and macOS systems. For Windows users, we recommend using WSL2 to run Keras. To install a local development version: 3. Run API generation script when creating PRs that update keras export public APIs: The following table lists the minimum supported versions of each backend for the latest stable release of Keras (v3.x): The requirements.txt file will install a CPU-only version of TensorFlow, JAX, and PyTorch. For GPU support, we also provide a separate requirements-{backend}-cuda.txt for TensorFlow, JAX, and PyTorch. These install all CUDA dependencies via pip and expect a NVIDIA driver to be pre-installed. We recommend a clean Python environment for each backend to avoid CUDA version mismatches. As an example, here is how to create a JAX GPU environment with conda : You can export the environment variable KERAS BACKEND or you can edit your local config file at ~/.keras/keras.json to configure your backend. Available backend options are: "tensorflow" , "jax" , "torch" , "openvino" . Example: Note: The backend must be configured before importing keras , and the backend cannot be changed after the package has been imported. Note: The OpenVINO backend is an inference-only backend, meaning it is designed only for running model predictions using model.predict() method. Keras 3 is intended to work as a drop-in replacement for tf.keras (when using the TensorFlow backend). Just take your existing tf.keras code, make sure that your calls to model.save() are using the up-to-date .keras format, and you're done. If your tf.keras model does not include custom components, you can start running it on top of JAX or PyTorch immediately. In addition, Keras models can consume datasets in any format, regardless of the backend you're using: you can train your models with your existing tf.data.Dataset pipelines or PyTorch DataLoaders .

Excerpt from the source-code README · 5,353 chars · not written by Vinony

Article · Italiano

Keras è una libreria open source per l'apprendimento automatico e le reti neurali, scritta in Python. È progettata come un'interfaccia a un livello di astrazione superiore di altre librerie simili di più basso livello, e supporta come back-end le librerie TensorFlow, Microsoft Cognitive Toolkit (CNTK) e Theano. Progettata per permettere una rapida prototipazione di reti neurali profonde, si concentra sulla facilità d'uso, la modularità e l'estensibilità. È stata sviluppata come parte del progetto di ricerca , e il suo autore principale è , di Google. Nel 2017 il team di TensorFlow ha deciso di supportare Keras ufficialmente. Chollet ha spiegato che Keras è stata pensata come un'interfaccia e non come una libreria stand-alone. Offre una serie di moduli che permettono di sviluppare reti neurali profonde indipendentemente dal back-end utilizzato, con un linguaggio comune e intuitivo. Microsoft ha aggiunto un back-end a CNTK a partire dalla versione 2.0 di CNTK.

Abstract from DBpedia / Wikipedia · CC BY-SA

Keras · Vinony