Skip to content

feat(time_feature): support sub-second frequencies - #3368

Open
Hrushikesh-ramilla wants to merge 1 commit into
awslabs:devfrom
Hrushikesh-ramilla:feat-subsecond-frequencies
Open

Hrushikesh-ramilla wants to merge 1 commit into
awslabs:devfrom
Hrushikesh-ramilla:feat-subsecond-frequencies

Conversation

@Hrushikesh-ramilla

@Hrushikesh-ramilla Hrushikesh-ramilla commented Nov 6, 2026 •

Copy link
Copy Markdown

Issue #, if available:
Closes #3202

Description of changes:
Add support for sub-second frequencies (ms / L, us / U, ns / N):

  • Register millisecond, microsecond, and nanosecond offset types in features_by_offsets within time_features_from_frequency_str.
  • Implement _make_lags_for_millisecond, _make_lags_for_microsecond, and _make_lags_for_nanosecond in get_lags_for_frequency to generate meaningful lag indices for sub-second series.
  • Add default seasonality entries for sub-second frequency strings in DEFAULT_SEASONALITIES.
  • Add unit tests for sub-second time features, lag calculation, and seasonalities.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Add support for millisecond (ms/L), microsecond (us/U), and nanosecond (ns/N) frequencies in time_features_from_frequency_str, get_lags_for_frequency, and get_seasonality.

Closes awslabs#3202.

Signed-off-by: Hrushikesh Ramilla <ramillahrushikesh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to use data with a frequency less than 1 second? For example, 100ms...

1 participant