EMRY-011: EMA + Welford streaming processors #56
No reviewers
Labels
No labels
blocked
bug
compat
docs
documentation
duplicate
emry-cli
emry-core
emry-engine
emry-ingest
emry-py
emry-store
emry-tui
emry-web
enhancement
good first issue
gpu-compute
help wanted
hpc
infra
integrations
invalid
needs-design
P0-blocker
P1-core
P2-enhanced
P3-future
performance
pull-request
python
pytorch
question
rust
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
femboy/emry!56
Loading…
Reference in a new issue
No description provided.
Delete branch "emry-011-ema-welford"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes EMRY-011 (#9). Branched off
main.What
crates/emry-engine/src/stats.rs— twoProcessorimpls over a configuredMetricId:Ema— alpha-weighted EMA, seeded on first value;alphavalidated to(0,1].Welford— single-pass online sample mean/std (Knuth/Welford two-delta form); emits{base}_meanand{base}_std.Non-finite inputs are rejected (skipped, state untouched) so a NaN step never corrupts the running stat; alerting is deferred to the anomaly processor (EMRY-013). Reads from both
Event::MetricandEvent::MetricsBatch.Verification
./scripts/pre-commit-rust.shgreen: clippy-D warnings, 13 engine tests, stats.rs 99% lines, total 95.59%[1,2,3,4]→3.125; Welford[2,4,4,4,5,5,7,9]→ mean5, sample var32/7Review
No issues above threshold. Strengthened the Welford test to also assert the emitted
_stdvalue per the spec's reference-value requirement.