normalize: Normalizes an array.

normalizeR Documentation

Normalizes an array.

Description

If the input is an R array, an R array will be returned. If it's a backend tensor, a backend tensor will be returned.

Usage

normalize(x, axis = -1L, order = 2L)

Arguments

x

Array to normalize.

axis

axis along which to normalize.

order

Normalization order (e.g. order=2 for L2 norm).

Value

A normalized copy of the array.

See Also

Other numerical utils:
to_categorical()

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()
pack_x_y_sample_weight()
pad_sequences()
set_random_seed()
split_dataset()
text_dataset_from_directory()
timeseries_dataset_from_array()
to_categorical()
unpack_x_y_sample_weight()
zip_lists()


rstudio/keras documentation built on April 22, 2024, 11:43 p.m.