Skip to content

Conversation

TarikVon
Copy link

@TarikVon TarikVon commented Apr 2, 2025

This Pull Request addresses an edge case in the TSNormalize transform where max == min in the input data, which would otherwise result in a None return value during normalization.
Instead of returning None, the transform now handles this scenario gracefully by setting the output to the lower bound of the target range (range_min).

- Resolved an issue where the normalization logic failed to handle cases where `max == min`.
- When `max == min`, the output is now explicitly set to the target range lower bound (`range_min`).
- Retained existing behavior for other scenarios and ensured compatibility with the normalization process.
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.

1 participant