Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ralph simplifies make_zn_scores #362

Merged
merged 2 commits into from
Jun 6, 2022
Merged

Conversation

rsueppel
Copy link
Contributor

I simplified make_zn_score and gathered all expanding means and mean absolute values into one function. The shorted the code from 550 to 180 lines (<50 lines excluding docstrings)

However, even the present code is still fairly long for careful reviews for a function whose correctness is essential for our business. Moreover, I have done very little testing. So I am sure there are bigs and errors left.

Therefore, unit testing must focus on double-calculating values and check if they are as expected.
In particular, please use pandas .expanding() function to check out calculations for specific columns and re-estimation dates.

@rsueppel rsueppel requested a review from Ksteeds May 28, 2022 15:19
@Ksteeds Ksteeds merged commit 11deef5 into feature/make_zn_scores_efficient Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants