有关于item_freq_dict_norm.txt
Yang-Yan-Yang-Yan opened this issue · 10 comments
作者您好,我在复现session-based-news-recommendation这一项目时遇到了一些问题,按照readme文件提示进行数据预处理后还是找不到item_freq_dict_norm_1.txt等文件,所以想请教一下这个文件是在哪个程序中生成的,谢谢。
This is used to compute ESIR score, which we didn't use at last, so this line can be removed
We trained our model on the Globo dataset using one GTX 1080 Ti, and the training time is within a few hours (3~4 hours).
Sorry I didn't keep the model. Maybe you could paste your training log and see what's wrong here.
I didn't see your log, could you paste it in this github issue? I'm sorry I can't answer you more about GPU things, which is beyond this paper. There're many tutorials in the Internet.
作者您好,我在使用您的源码时,出现了这样的问题,请问是哪里需要修改嘛
Traceback (most recent call last):
File "C:/Users/Administrator/Desktop/session-based-news-recommendation-master改动版/main.py", line 128, in
main(args)
File "C:/Users/Administrator/Desktop/session-based-news-recommendation-master改动版/main.py", line 67, in main
model = getattr(modelname, "Seq2SeqAttNN")(args)
File "C:\Users\Administrator\Desktop\session-based-news-recommendation-master改动版\model_combine.py", line 116, in init
scope="multi_attention", hidden_size=self.hidden_size, stddev=self.stddev)
File "C:\Users\Administrator\Desktop\session-based-news-recommendation-master改动版\modules.py", line 132, in multi_attention_layer
stddev) # [batch_size, time_step]
File "C:\Users\Administrator\Desktop\session-based-news-recommendation-master改动版\modules.py", line 151, in count_alpha_m
active=None) # [batch_size, time_step, hidden_size]
File "C:\Users\Administrator\Desktop\session-based-news-recommendation-master改动版\modules.py", line 76, in linear_3d
res = tf.matmul(inputs, w)
File "D:\python\lib\site-packages\tensorflow_core\python\util\dispatch.py", line 180, in wrapper
return target(*args, **kwargs)
File "D:\python\lib\site-packages\tensorflow_core\python\ops\math_ops.py", line 2716, in matmul
return batch_mat_mul_fn(a, b, adj_x=adjoint_a, adj_y=adjoint_b, name=name)
File "D:\python\lib\site-packages\tensorflow_core\python\ops\gen_math_ops.py", line 1712, in batch_mat_mul_v2
"BatchMatMulV2", x=x, y=y, adj_x=adj_x, adj_y=adj_y, name=name)
File "D:\python\lib\site-packages\tensorflow_core\python\framework\op_def_library.py", line 794, in _apply_op_helper
op_def=op_def)
File "D:\python\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "D:\python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3357, in create_op
attrs, op_def, compute_device)
File "D:\python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3426, in _create_op_internal
op_def=op_def)
File "D:\python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1770, in init
control_input_ops)
File "D:\python\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1610, in _create_c_op
raise ValueError(str(e))
ValueError: Dimensions must be equal, but are 64 and 1 for 'multi_attention/inter_linear_trans/MatMul' (op: 'BatchMatMulV2') with input shapes: [?,?,64], [?,1,250].
@Yang-Yan-Yang-Yan Hi, I update the getILD function, for Globo dataset, the original one costs a lot of time, and seems like dead loop. I think now the training time can be normal.
其实啊,这不是死循环,只要花费五十个小时就可以跑完一个epoch(不要问我如何知道)