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

Error while giving value 0 to parameter "specify-arg" #1

Open
aanchalMongia opened this issue Apr 22, 2019 · 1 comment
Open

Error while giving value 0 to parameter "specify-arg" #1

aanchalMongia opened this issue Apr 22, 2019 · 1 comment

Comments

@aanchalMongia
Copy link

aanchalMongia commented Apr 22, 2019

Dear author,
Thanks for the amazing work!
I was trying to run the pyDTI.py file.
The following command runs fine:

>python PyDTI.py --method="nrlmf" --dataset="nr" --cvs=1 --specify-arg=1 --data-dir=".\\data"

but when "specify-arg" parameter is given value 0 (to run the code for optimal paramters),

>python PyDTI.py --method="nrlmf" --dataset="nr" --cvs=1 --specify-arg=0 --data-dir=".\\data"

The following error is thrown by the code:

Traceback (most recent call last):
  File "PyDTI.py", line 127, in <module>
    main(sys.argv[1:])
  File "PyDTI.py", line 80, in main
    cv_eval.nrlmf_cv_eval(method, dataset, cv_data, X, D, T, cvs, args)
  File "D:\AanchalMongia_phdClg\Phd\Matlab\MatlabWorkspace\Prob11_grmcImpute\extras\Baseline_NRLMF\cv_eval.py", line 20, in nrlmf_cv_eval
    model = NRLMF(cfix=para['c'], K1=para['K1'], K2=para['K2'], num_factors=r, lambda_d=2**(x), lambda_t=2**(x), alpha=2**(y), beta=2**(z), theta=2**(t), max_iter=100)
ValueError: Integers to negative integer powers are not allowed.
@zuobaifu
Copy link

请问一下问题解决了吗

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