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

Popgen2 = weighted sum for some columns are zero....so do not adjust #11

Open
gharaviSara opened this issue Jul 21, 2020 · 1 comment
Open

Comments

@gharaviSara
Copy link

Dear Team,
I am using the popgen several time with same data but now I faced :
sample_weights sum: 7072.99798855
ipu for Region: 3
Weighted sum for column ('person', 2L, 9L, 1L, 2L, 2L) in iter 0is zero so don't adjust
Weighted sum for column ('person', 1L, 11L, 1L, 2L, 2L) in iter 0is zero so don't adjust
Weighted sum for column ('household', 5L, 2L, 4L, 3L) in iter 0is zero so don't adjust
Weighted sum for column ('household', 5L, 2L, 3L, 3L) in iter 0is zero so don't adjust
Weighted sum for column ('household', 4L, 2L, 4L, 2L) in iter 0is zero so don't adjust
.
.
.
which related to your reweighting.py seems it calculates the weight as zero but my data seems correct .
you can find the data
https://1drv.ms/u/s!As29Kwv1MAnIsy0GV1UMTJ34BtSF?e=8AxDff

the problem is when it finish it raise error in outputs seems there is nan in result

@sharmaishant92
Copy link

Hi @gharaviSara ,
I also came across the same error while running the PopGen. I am wondering if you were able to resolve this error. Please let me know whenever you can.
Thanks
Ishant

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

No branches or pull requests

2 participants