From dc31d4f9932e9f99dcb214e6f260470ff7630726 Mon Sep 17 00:00:00 2001 From: Tomasz Kalinowski Date: Mon, 17 Jul 2023 17:07:00 -0400 Subject: [PATCH] redocument --- R/layers-embedding.R | 7 +++++-- man/install_keras.Rd | 2 +- man/layer_embedding.Rd | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/R/layers-embedding.R b/R/layers-embedding.R index bf00ffa2e..abc07ee62 100644 --- a/R/layers-embedding.R +++ b/R/layers-embedding.R @@ -13,6 +13,8 @@ #' This layer accepts `tf.Tensor`, `tf.RaggedTensor` and `tf.SparseTensor` #' input. #' +#' @param object Layer or Model object +#' #' @param input_dim Integer. Size of the vocabulary, #' i.e. maximum integer index + 1. #' @@ -21,8 +23,8 @@ #' @param embeddings_initializer Initializer for the `embeddings` #' matrix (see `keras.initializers`). #' -#' @param embeddings_regularizer Regularizer function applied to -#' the `embeddings` matrix (see `keras.regularizers`). +#' @param embeddings_regularizer,activity_regularizer Regularizer function applied to +#' the `embeddings` matrix or to the activations (see `keras.regularizers`). #' #' @param embeddings_constraint Constraint function applied to #' the `embeddings` matrix (see `keras.constraints`). @@ -44,6 +46,7 @@ #' the layer returns a dense `tf.Tensor`. For an entry with no features in #' a sparse tensor (entry with value 0), the embedding vector of index 0 is #' returned by default. +#' #' @param ... standard layer arguments. #' #' @section Input shape: 2D tensor with shape: `(batch_size, sequence_length)`. diff --git a/man/install_keras.Rd b/man/install_keras.Rd index 88a2881bd..c9a5273e1 100644 --- a/man/install_keras.Rd +++ b/man/install_keras.Rd @@ -26,7 +26,7 @@ See \strong{Finding Conda} and \code{\link[reticulate:conda_binary]{conda_binary \item{version}{TensorFlow version to install. Valid values include: \itemize{ -\item \code{"default"} installs 2.11 +\item \code{"default"} installs 2.13 \item \code{"release"} installs the latest release version of tensorflow (which may be incompatible with the current version of the R package) \item A version specification like \code{"2.4"} or \code{"2.4.0"}. Note that if the patch diff --git a/man/layer_embedding.Rd b/man/layer_embedding.Rd index 7b362eb99..9399f7199 100644 --- a/man/layer_embedding.Rd +++ b/man/layer_embedding.Rd @@ -19,6 +19,8 @@ layer_embedding( ) } \arguments{ +\item{object}{Layer or Model object} + \item{input_dim}{Integer. Size of the vocabulary, i.e. maximum integer index + 1.} @@ -27,8 +29,8 @@ i.e. maximum integer index + 1.} \item{embeddings_initializer}{Initializer for the \code{embeddings} matrix (see \code{keras.initializers}).} -\item{embeddings_regularizer}{Regularizer function applied to -the \code{embeddings} matrix (see \code{keras.regularizers}).} +\item{embeddings_regularizer, activity_regularizer}{Regularizer function applied to +the \code{embeddings} matrix or to the activations (see \code{keras.regularizers}).} \item{embeddings_constraint}{Constraint function applied to the \code{embeddings} matrix (see \code{keras.constraints}).}