-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Glm log log #7562
Glm log log #7562
Conversation
Hello @gmcmacran! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-07-10 01:11:06 UTC |
@@ -31,6 +32,8 @@ def get_domainvalue(link): | |||
z = -np.log(np.random.uniform(0, 1)) | |||
if isinstance(link, links.CLogLog): # prone to overflow | |||
z = min(z, 3) | |||
elif isinstance(link, links.CLogLog): |
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.
you have CLogLog here, and not LogLog
Thanks, looks good. some whitespace issues, you need to strip trailing whitespace. |
can you add AFAIR, the plan is to have those also explicitly now. |
Thanks, looks good now, unit tests are green 2 remaining pep-8 style check complaints Do you know how to squash commits in an interactive rebase? |
Great, good to get this missing link added. Thanks again. PR looks done maybe squashing commits, |
Thanks for the help. I did some reading around squashing commits and changing the base. I think the safest thing is for you to do it if possible. I have stuck to the basics of version control. Is this possible? If not, I can make a practice repo and figure it out. |
Been a few days. Checking in. Please advise if anything else needs to be done for this to be merged. Thanks. |
Sorry, I was stuck in beta regression and didn't want to switch topics and branches before merging that. |
merged after rebase in #7562 |
Thanks @gmcmacran |
This pull requests adds the loglog link to the glm function for the binomial family.
Changes are
#1 Create class LogLog and loglog
#2 Edit binimial family to use #1's class
#3 Add Loglog to tests used for other links
In addition to automated tests, results were validated against R's extendedFamily package and example from Generalized Linear Models and Extensions book.
This is my first contribution to this repo. I attempted to follow https://www.statsmodels.org/stable/dev/index.html. Feedback/corrections are welcome.
NumPy's guide.
Notes:
needed for doc changes.
then show that it is fixed with the new code.
verify you changes are well formatted by running
flake8
is installed. This command is also available on Windowsusing the Windows System for Linux once
flake8
is installed in thelocal Linux environment. While passing this test is not required, it is good practice and it help
improve code quality in
statsmodels
.