random_dropout: Randomly set some values in a tensor to 0.

random_dropoutR 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()


rstudio/keras documentation built on April 27, 2024, 10:11 p.m.