Esc
Ask AIAnswers may be inaccurate; check the linked pages.Esc
Ask anything about these docs, like how to get started or what a function does.

freq_mix

Utility function for frequency domain data augmentation/mixing, typically used in time-series models.

freq_mix(x, y, rate=0.1, dim=1)

Performs frequency mixing on two input tensors, x (past targets) and y (future targets), by manipulating their frequency components using FFT and mixing them with shuffled versions of the input.

Parameter Type Default Description
x torch.Tensor - (undocumented)
y torch.Tensor - (undocumented)
rate float 0.1 (undocumented)
dim int 1 (undocumented)

Returns: tuple[torch.Tensor, torch.Tensor] (A tuple containing the frequency-mixed versions of x and y.)