This is a convenience utility for packing data into the list formats
that fit() uses.
Arguments
- x
Features to pass to
Model.- y
Ground-truth targets to pass to
Model.- sample_weight
Sample weight for each element.
Value
List in the format used in fit().
Example
x <- op_ones(c(10, 1))
data <- pack_x_y_sample_weight(x)
y <- op_ones(c(10, 1))
data <- pack_x_y_sample_weight(x, y)See also
Other data utils: unpack_x_y_sample_weight() zip_lists()
Other utils: audio_dataset_from_directory() clear_session() config_disable_interactive_logging() config_disable_traceback_filtering() config_enable_interactive_logging() config_enable_traceback_filtering() config_is_interactive_logging_enabled() config_is_traceback_filtering_enabled() get_file() get_source_inputs() image_array_save() image_dataset_from_directory() image_from_array() image_load() image_smart_resize() image_to_array() layer_feature_space() normalize() pad_sequences() set_random_seed() split_dataset() text_dataset_from_directory() timeseries_dataset_from_array() to_categorical() unpack_x_y_sample_weight() zip_lists()