Skip to content

Stop iterating logistic/poisson fit once NaN appears#5050

Merged
danking merged 2 commits intohail-is:masterfrom
jbloom22:firth_nan
Jan 2, 2019
Merged

Stop iterating logistic/poisson fit once NaN appears#5050
danking merged 2 commits intohail-is:masterfrom
jbloom22:firth_nan

Conversation

@jbloom22
Copy link
Copy Markdown
Contributor

@jbloom22 jbloom22 commented Dec 29, 2018

This is a performance improvement (and also returns explosion after the right number of iterations which is more logical). It is only necessary to check the first element because I'm confident NaN appears nowhere or everywhere in deltaB (and certainly if it appears somewhere in one iteration, it spreads to everywhere in the next).

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.

3 participants