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

the name 'test_user_set' is not defined ,but is defined globe? #10

Open
arnold-em opened this issue Dec 28, 2022 · 0 comments
Open

Comments

@arnold-em
Copy link

multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "D:\ProgramData\Anaconda3\envs\hakg\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "D:\ProgramData\Anaconda3\envs\hakg\lib\multiprocessing\pool.py", line 48, in mapstar
return list(map(*args))
File "D:\download\HAKG-main\HAKG-main\utils\evaluate.py", line 92, in test_one_user
user_pos_test = test_user_set[u]
NameError: name 'test_user_set' is not defined
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "main.py", line 123, in
ret = test(model, user_dict, n_params)
File "D:\download\HAKG-main\HAKG-main\utils\evaluate.py", line 168, in test
batch_result = pool.map(test_one_user, user_batch_rating_uid)
File "D:\ProgramData\Anaconda3\envs\hakg\lib\multiprocessing\pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "D:\ProgramData\Anaconda3\envs\hakg\lib\multiprocessing\pool.py", line 771, in get
raise self._value
NameError: name 'test_user_set' is not defined

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