Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refac: optimize
WelfordStatistics
update and finalization (#325)
### Description This PR replaces the current inefficient implementation of Welford statustics update and finalization with a faster numpy based implementation. - **What**: Refactored methods in `running_stats.py`. - **Why**: Performance. - **How**: Replacing for loops and list comprehensions with numpy vectorized ops. #### Notes No tests are there at the moment. However results provided by refactored code match the ones using the old version. --- **Please ensure your PR meets the following requirements:** - [x] Code builds and passes tests locally, including doctests - [ ] New tests have been added (for bug fixes/features) - [x] Pre-commit passes - [ ] PR to the documentation exists (for bug fixes / features)
- Loading branch information