-
Notifications
You must be signed in to change notification settings - Fork 22
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
TypeError: __init__() got an unexpected keyword argument 'normalize' #182
Comments
lasso = Lasso(alpha=1e-100, fit_intercept=False, normalize=False, precompute=xtx, positive=True, max_iter=10000, random_state=0)
TypeError: init() got an unexpected keyword argument 'normalize' It looks like the function mamba create --name polyfun --file polyfun.yml.lock
conda activate polyfun |
@jdblischak HI, Following your advice, I configured the environment based on the file polyfun.yml.lock. Since mamba is not available on my server, I used the following command to create the environment, hoping it would serve the same purpose:
Unfortunately, this method doesn't seem to have worked, as I encountered the same error message again. I tried checking the version of the sklearn package in both environments. In polyfun-lock, the version is 1.2.2, while in the polyfun environment, it's 1.3.2, yet they both produced the same error. All in all, thank you very much for your help! |
I attempted to remove the normalize=False parameter from lines 267 and 295 in the jackknife.py script (I'm not certain this was a reliable action, it was only a trial), and this time it worked. I reviewed the prior probability results for chromosome 22, which range from 7.19e-7 to 9.09e-9, from highest to lowest. Compared to the example file, this result seems to be normal. I eagerly look forward to your guidance on what I should do next. I hope you have a pleasant day! |
I investigated the argument
So now I am confused why this hasn't been caught before. We test Lines 144 to 146 in 00afe71
Ah, it's because of the flag polyfun/ldsc_polyfun/jackknife.py Lines 261 to 270 in 00afe71
polyfun/ldsc_polyfun/jackknife.py Lines 290 to 298 in 00afe71
|
@jdblischak ohh, I get it, thanks for your help! Now I'm going to close this issue. |
@Y-Isaac thanks for flagging this! I've accepted pull request #183, so the problem should be fixed for everyone now (thanks @jdblischak!) |
HI,
When I use polyfun.py to re-estimate per-SNP heritabilities via S-LDSC, there have a error:
And this is my code, if it's helpful:
The text was updated successfully, but these errors were encountered: