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
Typle Error #177
Comments
Have you modified the code? The original code here is self.measure = [dict(m)[i] for i in range(1,k+1)] |
OK.thanks for your reply!
发自我的iPhone
…------------------ Original ------------------
From: Yu <notifications@github.com>
Date: Wed,Oct 30,2019 2:14 PM
To: Coder-Yu/RecQ <RecQ@noreply.github.com>
Cc: lux0818 <308431952@qq.com>, Author <author@noreply.github.com>
Subject: Re: [Coder-Yu/RecQ] Typle Error (#177)
|
I have transformed it to python3.and then have that question
发自我的iPhone
…------------------ Original ------------------
From: Yu <notifications@github.com>
Date: Wed,Oct 30,2019 2:14 PM
To: Coder-Yu/RecQ <RecQ@noreply.github.com>
Cc: lux0818 <308431952@qq.com>, Author <author@noreply.github.com>
Subject: Re: [Coder-Yu/RecQ] Typle Error (#177)
Have you modified the code? The original code here is self.measure = [dict(m)[i] for i in range(1,k+1)]
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have modified the code and run again.it has KeyError: |
I suggest you use python 2.7 without modifying the original code yourself. I will update the repository to python 3 in the next few weeks |
Hello professor!thanks for your code. when I run main.py and choose the algorithm . it always has the same question:
Traceback (most recent call last):
File "C:/Users/Administrator/Desktop/新建文件夹/RecQ/RecQ-master/main/main.py", line 67, in
recSys.execute()
File "C:\Users\Administrator\Desktop\新建文件夹\RecQ\RecQ-master\main\RecQ.py", line 100, in execute
self.measure = [dict.setdafault(m)[i] for i in range(1,k+1)]
File "C:\Users\Administrator\Desktop\新建文件夹\RecQ\RecQ-master\main\RecQ.py", line 100, in
self.measure = [dict.setdafault(m)[i] for i in range(1,k+1)]
AttributeError: type object 'dict' has no attribute 'setdafault'
How can I solve it?looking for your reply.
The text was updated successfully, but these errors were encountered: