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

multiprocessing pool.map error #3

Open
kelva opened this issue Oct 26, 2017 · 0 comments
Open

multiprocessing pool.map error #3

kelva opened this issue Oct 26, 2017 · 0 comments

Comments

@kelva
Copy link

kelva commented Oct 26, 2017

Hi, professor He, Thanks for sharing your code ,But when I run the it ,There is a bug (as follow). but when I don't use multiprocessing and just use map ,It's ok .
Traceback (most recent call last):
File "D:/project/theano-BPR-master/run_example.py", line 37, in
bpr.build_model(maxIter, num_thread, batch_size=32)
File "D:\project\theano-BPR-master\MFbpr.py", line 88, in build_model
(hits, ndcgs) = evaluate_model(self, self.test, topK, num_thread)
File "D:\project\theano-BPR-master\evaluate.py", line 35, in evaluate_model
res = pool.map(eval_one_rating,range(num_rating))
File "C:\Python27\lib\multiprocessing\pool.py", line 253, in map
return self.map_async(func, iterable, chunksize).get()
File "C:\Python27\lib\multiprocessing\pool.py", line 572, in get
raise self._value
TypeError: 'NoneType' object has no attribute 'getitem'

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

1 participant