traja.accessor.TrajaAccessor.augment_subsample

TrajaAccessor.augment_subsample(step: int | None = None) TrajaDataFrame[source]

Subsample trajectory by taking every nth point for data augmentation.

Parameters:

step (int, optional) – Subsample step. If None, random step in [2, 5].

Returns:

Subsampled trajectory

Return type:

traja.TrajaDataFrame

Note

Useful for training models on different temporal resolutions.