Skip to content

Commit

Permalink
deal with CRAN incoming notes
Browse files Browse the repository at this point in the history
  • Loading branch information
AshesITR committed Oct 18, 2023
1 parent 6d349f4 commit aa6243c
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion R/callback_adaptive_lr.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#' x <- dist$sample(100, with_params = list(rate = group + 1))
#' global_fit <- fit(dist, x)
#'
#' if (keras::is_keras_available()) {
#' if (interactive() && keras::is_keras_available()) {
#' library(keras)
#' l_in <- layer_input(shape = 1L)
#' mod <- tf_compile_model(
Expand Down
2 changes: 1 addition & 1 deletion R/callback_debug_dist_gradients.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' x <- dist$sample(100, with_params = list(rate = group + 1))
#' global_fit <- fit(dist, x)
#'
#' if (keras::is_keras_available()) {
#' if (interactive() && keras::is_keras_available()) {
#' library(keras)
#' l_in <- layer_input(shape = 1L)
#' mod <- tf_compile_model(
Expand Down
4 changes: 1 addition & 3 deletions R/integrate.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ GK_QUAD <- list(
#' `15 * .max_iter`.
#'
#' @return A vector of integrals with the i-th entry containing an approximation
#' of
#'
#' int_{lower\[i\]}^{upper\[i\]} fun(t, pick_params_at(params, i)) dt
#' of the integral of fun(t, pick_params_at(params, i)) dt over the interval lower\[i\] to upper\[i\]
#'
#' @examples
#' # Argument recycling and parallel integration of two intervals
Expand Down
2 changes: 1 addition & 1 deletion R/tf_compile.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#' rand_input <- runif(N)
#' x <- dist$sample(N, with_params = params)
#'
#' if (keras::is_keras_available()) {
#' if (interactive() && keras::is_keras_available()) {
#' tf_in <- keras::layer_input(1L)
#' mod <- tf_compile_model(
#' inputs = list(tf_in),
Expand Down
4 changes: 2 additions & 2 deletions R/tf_fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' Contains one set of parameters per row in `data`.
#'
#' @examples
#' if (keras::is_keras_available()) {
#' if (interactive() && keras::is_keras_available()) {
#' dist <- dist_exponential()
#' params <- list(rate = 1.0)
#' N <- 100L
Expand Down Expand Up @@ -88,7 +88,7 @@ generics::fit
#' rand_input <- runif(N)
#' x <- dist$sample(N, with_params = params)
#'
#' if (keras::is_keras_available()) {
#' if (interactive() && keras::is_keras_available()) {
#' tf_in <- keras::layer_input(1L)
#' mod <- tf_compile_model(
#' inputs = list(tf_in),
Expand Down
2 changes: 1 addition & 1 deletion R/tf_initialise.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#' x <- dist$sample(100, with_params = list(rate = group + 1))
#' global_fit <- fit(dist, x)
#'
#' if (keras::is_keras_available()) {
#' if (interactive() && keras::is_keras_available()) {
#' library(keras)
#' l_in <- layer_input(shape = 1L)
#' mod <- tf_compile_model(
Expand Down
2 changes: 1 addition & 1 deletion R/tf_util.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ as_params <- function(x) {
#' The shape will be `(nrow(x), ncol(x))` where `x` is first converted to an R matrix via [as.matrix()].
#'
#' @examples
#' if (keras::is_keras_available()) {
#' if (interactive() && keras::is_keras_available()) {
#' k_matrix(diag(1:3))
#' k_matrix(diag(1:3), dtype = "int32")
#' # Vectors are converted to columns:
Expand Down
2 changes: 1 addition & 1 deletion man/callback_adaptive_lr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/callback_debug_dist_gradients.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/fit.reservr_keras_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions man/integrate_gk.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/k_matrix.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/predict.reservr_keras_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/tf_compile_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/tf_initialise_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aa6243c

Please sign in to comment.