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

Fill in codegen gaps for means #293

Merged
merged 5 commits into from
Mar 27, 2025
Merged

Fill in codegen gaps for means #293

merged 5 commits into from
Mar 27, 2025

Conversation

mccalluc
Copy link
Contributor

@mccalluc mccalluc commented Mar 18, 2025

Add plotting and reporting for means

I would like to keep that issue open because this doesn't yet report accuracy for DP means.

The logic is kind of different if there are or aren't groups. I've filed an issue upstream to see if some of these differences could be ironed out

... but I'm not sure this will be feasible.

For the reviewer:

  • Exercise it: I'm not so interested in whether it runs without errors (it certainly should!), but is the generated code actually readable?
  • Code review: After the OO refactoring is this any easier to follow? Any other suggestions to make it easier for devs?

@mccalluc mccalluc marked this pull request as ready for review March 18, 2025 22:46
@ChengShi-1 ChengShi-1 self-assigned this Mar 21, 2025
Copy link
Collaborator

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

Good! just notice something small

@@ -1 +1,9 @@
# todo: https://github.com/opendp/dp-wizard/issues/275
print(
f"DP means for COLUMN_NAME "
Copy link
Collaborator

Choose a reason for hiding this comment

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

COLUMN_NAME here may need to be dynamic?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is. All of these template files substitute values where there are string in ALLCAPS.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

... but if you're just looking at this file in isolation, how would a new developer know that? There's another PR

that would let us pull these templates closer to where they are used, and that might help.

@mccalluc mccalluc requested a review from ChengShi-1 March 25, 2025 20:49
@mccalluc
Copy link
Contributor Author

One little comment added about intervals. The templating could also use a better explanation, but there might be bigger changes there soon-ish. Thanks for review, @ChengShi-1.

@ChengShi-1 ChengShi-1 removed their assignment Mar 27, 2025
Copy link
Collaborator

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@mccalluc mccalluc merged commit 5c3e648 into main Mar 27, 2025
4 checks passed
@mccalluc mccalluc deleted the 275-fill-in-mean-gaps branch March 27, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

2 participants