Add training-fitted normalization to time-series processors - #1231
Open
LIU-kaiyu wants to merge 1 commit into
Open
Add training-fitted normalization to time-series processors#1231LIU-kaiyu wants to merge 1 commit into
LIU-kaiyu wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #491.
Adds optional per-feature z-score normalization to
TimeseriesProcessorandTemporalTimeseriesProcessorthroughnormalize_strategy="standard". Normalization remains disabled by default.The processors incrementally fit the training mean and population standard deviation after resampling and imputation, then apply those fixed statistics to subsequent samples. Each resulting timestep contributes equally; constant features use a scale of 1. Temporal timestamps remain unchanged.
The change also:
Validation: 39 focused tests passed in Pixi, including 20 normalization tests covering defaults, imputation, invalid inputs, refitting, serialization, cache fingerprints, and processor transfer. The synthetic example and local contribution checks passed.
A broader run encountered three dataset-backed schema-test failures during synthetic MIMIC loading because of Windows URL/path handling; those are outside this change.