Skip to content

Commit 5add916

Browse files
committed
R CMD check fixes
1 parent 397d3b8 commit 5add916

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed

R/layers-noise.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#'
1212
#' @param stddev float, standard deviation of the noise distribution.
1313
#'
14+
#' @param seed Integer, optional random seed to enable deterministic behavior.
15+
#'
1416
#' @param ... standard layer arguments.
1517
#'
1618
#' @section Input shape: Arbitrary. Use the keyword argument `input_shape` (list

R/layers-preprocessing.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ function(object, num_bins, mask_value = NULL, salt = NULL,
929929
#' `"count"`, or `"tf_idf"`. If `TRUE`, the output will have its feature axis
930930
#' padded to `max_tokens` even if the number of unique tokens in the
931931
#' vocabulary is less than max_tokens, resulting in a tensor of shape
932-
#' [batch_size, max_tokens] regardless of vocabulary size. Defaults to
932+
#' `[batch_size, max_tokens]` regardless of vocabulary size. Defaults to
933933
#' FALSE.
934934
#'
935935
#' @param sparse Boolean. Only applicable when `output_mode` is `"multi_hot"`,
@@ -1007,6 +1007,8 @@ function(object,
10071007
#' For an overview and full list of preprocessing layers, see the preprocessing
10081008
#' [guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).
10091009
#'
1010+
#' @inheritParams layer_dense
1011+
#'
10101012
#' @param max_tokens Maximum size of the vocabulary for this layer. This should
10111013
#' only be specified when adapting the vocabulary or when setting
10121014
#' `pad_to_max_tokens = TRUE`. If NULL, there is no cap on the size of the
@@ -1069,7 +1071,7 @@ function(object,
10691071
#' `"count"`, or `"tf_idf"`. If TRUE, the output will have its feature axis
10701072
#' padded to `max_tokens` even if the number of unique tokens in the
10711073
#' vocabulary is less than max_tokens, resulting in a tensor of shape
1072-
#' [batch_size, max_tokens] regardless of vocabulary size. Defaults to
1074+
#' `[batch_size, max_tokens]` regardless of vocabulary size. Defaults to
10731075
#' FALSE.
10741076
#'
10751077
#' @param sparse Boolean. Only applicable when `output_mode` is `"multi_hot"`,

man/layer_gaussian_noise.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/layer_integer_lookup.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/layer_string_lookup.Rd

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/make-layer-wrapper.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,5 @@ print.r_py_wrapper2 <- function(x, ...) {
169169
# new_layer_wrapper(keras$layers$GaussianNoise) |> print()
170170
# new_layer_wrapper(keras$layers$IntegerLookup) |> print()
171171
# new_layer_wrapper(keras$layers$Normalization) |> print()
172-
new_layer_wrapper(keras$layers$StringLookup) |> print()
172+
# new_layer_wrapper(keras$layers$StringLookup) |> print()
173173

0 commit comments

Comments
 (0)