Skip to content

Commit

Permalink
Merge pull request #1453 from rstudio/remove-pack-unpack-x-y-sample-w…
Browse files Browse the repository at this point in the history
…eight

Remove `unpack_x_y_sample_weight()`
  • Loading branch information
t-kalinowski authored May 21, 2024
2 parents 4c69f8f + 0e71e47 commit 9611031
Show file tree
Hide file tree
Showing 38 changed files with 40 additions and 225 deletions.
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@ export(optimizer_loss_scale)
export(optimizer_nadam)
export(optimizer_rmsprop)
export(optimizer_sgd)
export(pack_x_y_sample_weight)
export(pad_sequences)
export(pop_layer)
export(predict_on_batch)
Expand Down Expand Up @@ -696,7 +695,6 @@ export(to_categorical)
export(train_on_batch)
export(tuple)
export(unfreeze_weights)
export(unpack_x_y_sample_weight)
export(use_backend)
export(use_python)
export(use_virtualenv)
Expand Down
8 changes: 6 additions & 2 deletions R/dataset-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#' @param sample_weight
#' Sample weight for each element.
#'
#' @export
#' @noRd
# @export
#' @family data utils
#' @family utils
# @seealso
Expand Down Expand Up @@ -75,7 +76,10 @@ function (x, y = NULL, sample_weight = NULL)
#' @param data
#' A list of the form `(x)`, `(x, y)`, or `(x, y, sample_weight)`.
#'
#' @export
#' @noRd
# This is removed because it has no real purpose in R. Use this instead:
# c(x, y = NULL, sample_weight = NULL) %<-% data
# @export
#' @family data utils
#' @family utils
#' @keywords internal
Expand Down
2 changes: 0 additions & 2 deletions man/audio_dataset_from_directory.Rd

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

2 changes: 0 additions & 2 deletions man/clear_session.Rd

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

2 changes: 0 additions & 2 deletions man/config_disable_interactive_logging.Rd

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

2 changes: 0 additions & 2 deletions man/config_disable_traceback_filtering.Rd

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

2 changes: 0 additions & 2 deletions man/config_enable_interactive_logging.Rd

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

2 changes: 0 additions & 2 deletions man/config_enable_traceback_filtering.Rd

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

2 changes: 0 additions & 2 deletions man/config_is_interactive_logging_enabled.Rd

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

2 changes: 0 additions & 2 deletions man/config_is_traceback_filtering_enabled.Rd

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

2 changes: 0 additions & 2 deletions man/get_file.Rd

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

2 changes: 0 additions & 2 deletions man/get_source_inputs.Rd

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

2 changes: 0 additions & 2 deletions man/image_array_save.Rd

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

2 changes: 0 additions & 2 deletions man/image_dataset_from_directory.Rd

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

2 changes: 0 additions & 2 deletions man/image_from_array.Rd

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

2 changes: 0 additions & 2 deletions man/image_load.Rd

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

2 changes: 0 additions & 2 deletions man/image_smart_resize.Rd

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

2 changes: 0 additions & 2 deletions man/image_to_array.Rd

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

2 changes: 0 additions & 2 deletions man/layer_feature_space.Rd

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

4 changes: 2 additions & 2 deletions man/layer_tfsm.Rd

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

2 changes: 0 additions & 2 deletions man/normalize.Rd

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

68 changes: 0 additions & 68 deletions man/pack_x_y_sample_weight.Rd

This file was deleted.

Loading

0 comments on commit 9611031

Please sign in to comment.