sort
sort(by=0, descending=false, dims=none, p=1.0)
Sorts input sequence data by the feature index by. If dims are provided, by must be an index relative to dims.
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. Ifnone, 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