You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 213a130
Browse filesBrowse the repository at this point in the historyBrowse files
fix: Compute std and var correctly for tiled aggregations
With enable_tiling=True, the Spark and Ray compute engines build
time-windowed aggregations from cumulative tiles. For std/stddev and
var/variance the tiles already carry sum, count and sum of squares, but
both apply_sawtooth_window_tiling and convert_cumulative_to_windowed
computed the final value as sum / count, so these features were
materialized as the window mean instead of the standard deviation or
variance.
Compute the final value for holistic aggregations in one helper: the
mean for avg/mean, and the sample variance (and its square root for
std) from the sum of squares, matching the non-tiled pandas/Spark
results. Windows with fewer than two values yield NaN, as they do
without tiling.
Signed-off-by: Mohammad Hijjawi <[email protected]>
0 commit comments