zealscott / HAKG

Source code for HAKG: Hierarchy-Aware Knowledge Gated Network for Recommendation. SIGIR 2022.
https://arxiv.org/abs/2204.04959
Apache License 2.0
27 stars 3 forks source link

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

Open arnold-em opened 1 year ago

arnold-em commented 1 year ago

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