Closed lijhong closed 3 years ago
你好,最近在看你论文,同时尝试运行了下代码,发现有报错,内容如下: Traceback (most recent call last): File "main.py", line 23, in seed = conf["seed"] File "/self-sup/SGL/util/configurator.py", line 128, in getitem raise KeyError("There are not the parameter named '%s'" % item) KeyError: "There are not the parameter named 'seed'" 请问下如何解决这个问题,谢谢。
这个应该是你没设置对路径,你需要在main.py里设置root_folder为project的根目录。
你好,最近在看你的论文,尝试了代码,出现了下面的错误
(tensor) algroup@algroup:~/lxj/SGL-main$ python main.py --recommender=SGL
seed= 2021
WARNING:tensorflow:From main.py:27: The name tf.set_random_seed is deprecated. Please use tf.compat.v1.set_random_seed instead.
split and save data...
2022-03-07 10:08:39.052: amazon-book_given_u0_i0
2022-03-07 10:08:39.053: Dataset name: amazon-book
The number of users: 52643
The number of items: 91599
The number of ratings: 2984108
Average actions of users: 56.69
Average actions of items: 32.58
The sparsity of the dataset: 99.938115%
Item degree grouping...
Traceback (most recent call last):
File "main.py", line 33, in
你好,最近在看你论文,同时尝试运行了下代码,发现有报错,内容如下: Traceback (most recent call last): File "main.py", line 23, in
seed = conf["seed"]
File "/self-sup/SGL/util/configurator.py", line 128, in getitem
raise KeyError("There are not the parameter named '%s'" % item)
KeyError: "There are not the parameter named 'seed'"
请问下如何解决这个问题,谢谢。