Skip to content

fix: Compute real standard deviation in output instead of mean().#21

Merged
Hugoch merged 2 commits intomainfrom
fix/std-dev-computation
Jan 14, 2026
Merged

fix: Compute real standard deviation in output instead of mean().#21
Hugoch merged 2 commits intomainfrom
fix/std-dev-computation

Conversation

@Hugoch
Copy link
Member

@Hugoch Hugoch commented Jan 14, 2026

This PR fixes the computation of standard deviation in output (used to wrongly be the mean value).
Fixes #13

@Hugoch Hugoch self-assigned this Jan 14, 2026
@Hugoch Hugoch added the bug Something isn't working label Jan 14, 2026
@Hugoch Hugoch requested a review from Copilot January 14, 2026 14:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the computation of standard deviation in the output, which previously incorrectly displayed the mean value instead. The fix implements Welford's online algorithm to compute the running variance and standard deviation of FLOPS measurements.

Changes:

  • Added support for computing real standard deviation using Welford's algorithm
  • Refactored FLOPS update logic into a dedicated update_flops() method
  • Added new fields flops_mean and flops_m2 to track running statistics

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Hugoch Hugoch merged commit 43ccc3f into main Jan 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compute real standard deviation

2 participants