-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bernoulli graphs can have p>1 #20
Comments
Maybe we should switch the name of the edge distribution to |
In stochastic block models and Erdos-renyi graphs, it is exact.
In other models, it is approximate.
I’m not sure how to handle this.
… On Jul 2, 2021, at 10:00 AM, alex hayes ***@***.***> wrote:
Maybe we should switch the name of the edge distribution to "approximately-bernoulli" then too? And switch from an error to a warning? Does that sound good to you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#20 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB65UINUARKSXQNUOU6YCR3TVXIARANCNFSM47W23ADA>.
|
We can do things on a model by model basis. I think it makes sense to leave the error for model where the approximation is exact (i.e. above). |
But my probabilities weren't greater than one.... it only happens because of the -log(1-p) needed to inflate the Poisson probabilities... so that after thresholding, we get Bernoulli( p) |
So, the check should go before the -log(1-p) |
Ah I should move this code out of the SBM model and into the general factor model constructors. |
General solution in #29 |
Bernoulli probabilities can exceed one... because we simulate from poisson and threshold anything above 1.
So, I think this error shouldn't be there.
The text was updated successfully, but these errors were encountered: