random_dropout {keras3}R Documentation

Randomly set some values in a tensor to 0.

Description

Randomly set some portion of values in the tensor to 0.

Usage

random_dropout(inputs, rate, noise_shape = NULL, seed = NULL)

Arguments

inputs

A tensor

rate

numeric

noise_shape

A shape() value

seed

Initial seed for the random number generator

Value

A tensor that is a copy of inputs with some values set to 0.

See Also

Other random:
random_beta()
random_binomial()
random_categorical()
random_gamma()
random_integer()
random_normal()
random_seed_generator()
random_shuffle()
random_truncated_normal()
random_uniform()


[Package keras3 version 1.1.0 Index]