-
Notifications
You must be signed in to change notification settings - Fork 719
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
Correct default value of alphas #476
Conversation
The PopulationSummaryResults class should to default to self.alpha when the alpha parameter is not passed. This is not the case currently since some methods use the statement 'alpha = self.alpha if alpha is None else alpha', however alpha's default value in the methods is .1, thus self.alpha will be ignored even if the client does not pass the alpha parameter. Without the fix ate_interval(), marginal_ate_interval() and const_marginal_ate_interval() all ignore the alpha parameter.
Thanks @mtanghu ! Great catch! I will address that thoroughly in a separate PR. |
@mtanghu We are happy to have more external contributors. I think your current fix have already partially addressed this issue, and we have the similar issue for The logic will be in the initializer we have some default |
@heimengqi I'd love to! I'll do that this weekend! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this mostly looks good, but I've added a few extra suggestions (one of which was also made by @heimengqi).
Once those are addressed I'd be happy to approve this.
@mtanghu Are you still interested in following this through, or should someone on our team do the remaining work to get this PR cleaned up and then merged? |
@kbattocchi Oh yes sorry, I'm definitely interested and just caught up in other work. I should be able to get this PR cleaned up soon! |
This should be ready to merge, lmk if there's anything you else you'd like me to help with |
There was a problem hiding this 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, thanks!
Removing whitespace to fix linting
The PopulationSummaryResults class should to default to self.alpha when the alpha parameter is not passed. This is not the case currently since some methods use the statement 'alpha = self.alpha if alpha is None else alpha', however alpha's default value in the methods is .1, thus self.alpha will be ignored even if the client does not pass the alpha parameter.
Without the fix ate_interval(), marginal_ate_interval() and const_marginal_ate_interval() all ignore the alpha parameter.