R Interface to 'Keras'
Overview
Interface to 'Keras' https://keras.io, a high-level neural networks 'API'. 'Keras' was developed with a focus on enabling fast experimentation, supports both convolution based networks and recurrent networks (as well as combinations of the two), and runs seamlessly on both 'CPU' and 'GPU' devices.
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: keras/tests/testthat/test-preprocessing.R (.Dim: 3) '.Dim' should be changed to 'dim'.
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘Metric.Rd’ \arguments should not be documented without \usage.
- NOTE8 OK, 5 NOTENow
- NOTE12 OK, 1 NOTE2026-07-11
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
- Help pages
- 454 (22 internal)includes a package overview page
- Examples that run
- 13%2 run in a plain check · 14 never run
- Exported functions with examples
- 4%
- Documented parameters
- 99%
- Return-value docs
- 59%
- Help pages citing references
- 0%
- Frequently Asked Questions
- Getting Started with Keras HTML
- Guide to Keras Basics HTML
- Guide to the Functional API HTML
- Guide to the Sequential Model HTML
- Saving and serializing models HTML
- Training Callbacks HTML
- Training Visualization HTML
- Using Pre-Trained Models HTML
- Writing Custom Keras Layers HTML
Show 1 moreHide 1 vignette
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 3
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/rstudio/keras3 on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 1 practice
Dependencies
Installing keras adds 30 packages (17 with compiled code, 11 MB of source tarballs). Heaviest: tfruns 1.9 MB, Rcpp 1.8 MB, reticulate 1.6 MB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
People & History
Previously maintained by Daniel Falbel (2.2.4.1 to 2.4.0) and JJ Allaire (2.0.5 to 2.2.4).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.16.1Latest
- 2.16.0
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 2.15.02024-04-20 · diff ↗
- 2.13.02023-08-15 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.11.12023-03-20 · diff ↗
- 2.11.0
- 2.9.02022-05-23 · diff ↗ ·
added 19 exports
%<>%, k_unstack, layer_random_brightness, layer_unit_normalization, learning_rate_schedule_cosine_decay, learning_rate_schedule_cosine_decay_restarts, learning_rate_schedule_exponential_decay, learning_rate_schedule_inverse_time_decay, learning_rate_schedule_piecewise_constant_decay, learning_rate_schedule_polynomial_decay, mark_active, new_callback_class, new_layer_class, new_learning_rate_schedule_class, new_loss_class, new_metric_class, new_model_class, regularizer_orthogonal, zip_lists - RR 4.2.0 released · 2022-04-22
- 2.8.0
- 2.7.02021-11-09 · diff ↗ ·
added 28 exports
%<-active%, application_efficientnet_b0, application_efficientnet_b1, application_efficientnet_b2, application_efficientnet_b3, application_efficientnet_b4, application_efficientnet_b5, application_efficientnet_b6, application_efficientnet_b7, application_mobilenet_v3_large, application_mobilenet_v3_small, application_resnet101, application_resnet101_v2, application_resnet152, application_resnet152_v2, application_resnet50_v2, layer_additive_attention, layer_conv_lstm_1d, layer_conv_lstm_3d, layer_gru_cell, layer_lstm_cell, layer_rnn, layer_simple_rnn_cell, layer_stacked_rnn_cells, resnet_preprocess_input, resnet_v2_preprocess_input, text_dataset_from_directory, timeseries_dataset_from_array - 2.6.12021-09-30 · diff ↗ ·
added 18 exports
as_tensor, layer_category_encoding, layer_center_crop, layer_discretization, layer_hashing, layer_integer_lookup, layer_normalization, layer_random_contrast, layer_random_crop, layer_random_flip, layer_random_height, layer_random_rotation, layer_random_translation, layer_random_width, layer_random_zoom, layer_rescaling, layer_resizing, layer_string_lookup - 2.6.02021-08-21 · diff ↗ ·
added 30 exports
%py_class%, activation_gelu, activation_swish, create_layer_wrapper, keras, loss_huber, loss_kl_divergence, metric_accuracy, metric_auc, metric_categorical_hinge, metric_cosine_similarity, metric_false_negatives, metric_false_positives, metric_logcosh_error, metric_mean, metric_mean_iou, metric_mean_relative_error, metric_mean_tensor, metric_mean_wrapper, metric_precision, metric_precision_at_recall, metric_recall, metric_recall_at_precision, metric_root_mean_squared_error, metric_sensitivity_at_specificity, metric_sparse_categorical_accuracy, metric_specificity_at_sensitivity, metric_sum, metric_true_negatives, metric_true_positives
Show 20 earlier eventsHide 20 earlier events
- RR 4.1.0 released · 2021-05-18
- 2.4.02021-03-29 · diff ↗ ·
added 5 exports
Layer, image_dataset_from_directory, layer_conv_1d_transpose, layer_layer_normalization, layer_multi_head_attention - 2.3.0.02020-05-19 · diff ↗ ·
added 5 exports
adapt, get_vocabulary, layer_attention, layer_text_vectorization, set_vocabulary - RR 4.0.0 released · 2020-04-24
- 2.2.5.02019-10-08 · diff ↗ ·
added 8 exports
layer_dense_features, load_model_tf, load_model_weights_tf, loss_cosine_similarity, model_from_saved_model, model_to_saved_model, save_model_tf, save_model_weights_tf - RR 3.6.0 released · 2019-04-26
- 2.2.4.1
- 2.2.42018-11-22 · diff ↗ ·
added 4 exports
KerasWrapper, activation_exponential, create_wrapper, layer_activation_selu - 2.2.02018-08-24 · diff ↗ ·
added 10 exports
application_mobilenet_v2, custom_metric, k_is_tensor, keras_model_custom, layer_activation_relu, mobilenet_v2_decode_predictions, mobilenet_v2_load_model_hdf5, mobilenet_v2_preprocess_input, shape, tuple - 2.1.62018-04-29 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 2.1.5
- 2.1.42018-02-24 · diff ↗ ·
added 11 exports
application_densenet, application_densenet121, application_densenet169, application_densenet201, application_nasnet, application_nasnetlarge, application_nasnetmobile, densenet_preprocess_input, layer_activation_softmax, layer_separable_conv_1d, nasnet_preprocess_input - 2.1.32018-01-17 · diff ↗
- 2.1.22017-12-17 · diff ↗ ·
removed 1 export
export_savedmodel.keras.engine.training.Modeladded 153 exports
export_savedmodel, k_abs, k_all, k_any, k_arange, k_argmax, k_argmin, k_backend, k_batch_dot, k_batch_flatten, k_batch_get_value, k_batch_normalization, k_batch_set_value, k_bias_add, k_binary_crossentropy, k_cast, k_cast_to_floatx, k_categorical_crossentropy, k_clear_session, k_clip, k_concatenate, k_constant, k_conv1d, k_conv2d, k_conv2d_transpose, k_conv3d, k_conv3d_transpose, k_cos, k_count_params, k_ctc_batch_cost and 123 more - 2.0.92017-11-17 · diff ↗ ·
added 18 exports
%<-%, application_inception_resnet_v2, array_reshape, dataset_fashion_mnist, dataset_imdb_word_index, export_savedmodel.keras.engine.training.Model, freeze_weights, generator_next, image_array_resize, image_array_save, inception_resnet_v2_preprocess_input, layer_cudnn_gru, layer_cudnn_lstm, layer_minimum, load_text_tokenizer, multi_gpu_model, save_text_tokenizer, unfreeze_weights - 2.0.82017-09-30 · diff ↗ ·
removed 1 export
to_numpy_arrayadded 4 exports
clone_model, keras_array, layer_subtract, use_session_with_seed - 2.0.62017-08-30 · diff ↗ ·
removed 2 exports
install_tensorflow, tf_configadded 11 exports
flag_boolean, flag_integer, flag_numeric, flag_string, flags, install_keras, is_keras_available, run_dir, serialize_model, to_numpy_array, unserialize_model - 2.0.52017-07-30
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-07-30
- Total releases
- 26 / 9 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6
- Download size
- 3.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("keras")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.