Skip to main content

rev

rev(dims=none, p=1.0)

Reverses feature values along the time axis.

A list of one or more indices can be specified via dims, to apply the operation to specific features, and the probability of the operation being applied to the data can be set with p.

Arguments

  • dims (int|list[int]|none): Feature dimensions to apply operation to. If none, all feature dimensions are used.

    Default: none

  • p (float): Probability for operation to be applied to data sequence, between 0 and 1.

    Default: 1.0