From 0fa9656663c74c2daa62d8f9f111395798f2481d Mon Sep 17 00:00:00 2001 From: Tomasz Kalinowski Date: Tue, 7 Jan 2025 10:55:38 -0500 Subject: [PATCH] R CMD check fixes --- R/initializers.R | 2 -- R/layers-preprocessing.R | 2 +- R/metrics.R | 2 -- R/package.R | 2 +- man/initializer_stft.Rd | 4 ---- man/keras3-package.Rd | 2 +- man/layer_max_num_bounding_boxes.Rd | 8 +------- man/layer_tfsm.Rd | 4 ++-- man/metric_pearson_correlation.Rd | 4 ---- 9 files changed, 6 insertions(+), 24 deletions(-) diff --git a/R/initializers.R b/R/initializers.R index f0e20174b..26b5976f0 100644 --- a/R/initializers.R +++ b/R/initializers.R @@ -761,8 +761,6 @@ function (scale = 1, mode = "fan_in", distribution = "truncated_normal", #' @family initializers #' @family constant initializers #' @tether keras.initializers.STFT -#' @seealso -#' + initializer_stft <- function (side = "real", window = "hann", scaling = "density", periodic = FALSE) diff --git a/R/layers-preprocessing.R b/R/layers-preprocessing.R index 3a7ba7109..ae0678aaa 100644 --- a/R/layers-preprocessing.R +++ b/R/layers-preprocessing.R @@ -204,7 +204,7 @@ function (object, height, width, data_format = NULL, ...) #' @family layers #' @tether keras.layers.MaxNumBoundingBoxes layer_max_num_bounding_boxes <- -function (object, max_number, fill_value = -1L, ..., padding_value = NULL) +function (object, max_number, fill_value = -1L, ...) { args <- capture_args(list(fill_value = as_integer, input_shape = normalize_shape, batch_size = as_integer, batch_input_shape = normalize_shape), diff --git a/R/metrics.R b/R/metrics.R index d584cc822..66bf5096e 100644 --- a/R/metrics.R +++ b/R/metrics.R @@ -3792,8 +3792,6 @@ function (y_true, y_pred, axis = -1L, ..., #' @family metrics #' @export #' @tether keras.metrics.PearsonCorrelation -#' @seealso -#' + metric_pearson_correlation <- function (y_true, y_pred, axis = -1L, ..., name = "pearson_correlation", dtype = NULL) diff --git a/R/package.R b/R/package.R index 5e8c07bad..47d0f2f3e 100644 --- a/R/package.R +++ b/R/package.R @@ -13,7 +13,7 @@ #' Turing machine. #' - Is capable of running on top of multiple back-ends including #' [TensorFlow](https://github.com/tensorflow/tensorflow), -#' [Jax](https://github.com/google/jax), +#' [Jax](https://github.com/jax-ml/jax), #' or [PyTorch](https://github.com/pytorch/pytorch). #' #' See the package website at for complete documentation. diff --git a/man/initializer_stft.Rd b/man/initializer_stft.Rd index 67884c1d9..2c833996c 100644 --- a/man/initializer_stft.Rd +++ b/man/initializer_stft.Rd @@ -51,10 +51,6 @@ values <- initializer(shape = c(128, 1, 513)) } \seealso{ -\itemize{ -\item \url{https://www.tensorflow.org/api_docs/python/tf/keras/initializers/STFT} -} - Other initializers: \cr \code{\link{initializer_constant}()} \cr \code{\link{initializer_glorot_normal}()} \cr diff --git a/man/keras3-package.Rd b/man/keras3-package.Rd index 758f11e52..4e8857e16 100644 --- a/man/keras3-package.Rd +++ b/man/keras3-package.Rd @@ -22,7 +22,7 @@ building essentially any deep learning model, from a memory network to a neural Turing machine. \item Is capable of running on top of multiple back-ends including \href{https://github.com/tensorflow/tensorflow}{TensorFlow}, -\href{https://github.com/google/jax}{Jax}, +\href{https://github.com/jax-ml/jax}{Jax}, or \href{https://github.com/pytorch/pytorch}{PyTorch}. } diff --git a/man/layer_max_num_bounding_boxes.Rd b/man/layer_max_num_bounding_boxes.Rd index fc2995d98..a5ebe072f 100644 --- a/man/layer_max_num_bounding_boxes.Rd +++ b/man/layer_max_num_bounding_boxes.Rd @@ -4,13 +4,7 @@ \alias{layer_max_num_bounding_boxes} \title{Ensure the maximum number of bounding boxes.} \usage{ -layer_max_num_bounding_boxes( - object, - max_number, - fill_value = -1L, - ..., - padding_value = NULL -) +layer_max_num_bounding_boxes(object, max_number, fill_value = -1L, ...) } \arguments{ \item{object}{Object to compose the layer with. A tensor, array, or sequential model.} diff --git a/man/layer_tfsm.Rd b/man/layer_tfsm.Rd index a6270fdf3..e01836d58 100644 --- a/man/layer_tfsm.Rd +++ b/man/layer_tfsm.Rd @@ -59,8 +59,8 @@ model |> export_savedmodel("path/to/artifact") ## Output Type: ## TensorSpec(shape=(None, 10), dtype=tf.float32, name=None) ## Captures: -## 124433873365392: TensorSpec(shape=(), dtype=tf.resource, name=None) -## 124433873361168: TensorSpec(shape=(), dtype=tf.resource, name=None) +## 135453304585296: TensorSpec(shape=(), dtype=tf.resource, name=None) +## 135453304578768: TensorSpec(shape=(), dtype=tf.resource, name=None) }\if{html}{\out{}} diff --git a/man/metric_pearson_correlation.Rd b/man/metric_pearson_correlation.Rd index c875d1d3f..49e7c566f 100644 --- a/man/metric_pearson_correlation.Rd +++ b/man/metric_pearson_correlation.Rd @@ -77,10 +77,6 @@ Usage with \code{compile()} API: } \seealso{ -\itemize{ -\item \url{https://www.tensorflow.org/api_docs/python/tf/keras/metrics/PearsonCorrelation} -} - Other regression metrics: \cr \code{\link{metric_concordance_correlation}()} \cr \code{\link{metric_cosine_similarity}()} \cr