librahu / lgrec Goto Github PK
View Code? Open in Web Editor NEWSource code for CIKM2018 paper "Local and Global Information Fusion for Top-N Recommendation in Heterogeneous Information Network"
Source code for CIKM2018 paper "Local and Global Information Fusion for Top-N Recommendation in Heterogeneous Information Network"
mldl@ub1604:/ub16_prj/LGRec/code$ python LGRec.py/ub16_prj/LGRec/code$
Traceback (most recent call last):
File "LGRec.py", line 408, in
test_ratings, negative_ratings, user_pop, item_pop, user_neighbor, item_neighbor, relation_map_label = read_data(model_config.path)
File "LGRec.py", line 24, in read_data
with open(path + '.train.rating') as infile:
IOError: [Errno 2] No such file or directory: '../data/yelp.train.rating'
mldl@ub1604:
where is the files named 'yelp.train.rating' ,'yelp.test.rating', 'yelp.test.negative', 'yelp.user_neighbor_100' and so on? I have downloaded the dataset you offered,could you tell me how to name these files?thanks!
user_num = 941, item_num = 1322
Traceback (most recent call last):
File "D:\code\LGRec\src\get_neighbor.py", line 54, in
user_embedding[i][j] = float(arr[j + 1])
IndexError: index 942 is out of bounds for axis 0 with size 942
I have reduced i, why is it still the same mistake?
Thank you for your answer.
hello
If I use Amazon datasets, how can I get the factors_u or item_neighbor_100 data about Amazon?
the data is about ml-100, while input of LGRec.py is about Yelp? could you tell how to generate the dataset? Thanks!
Hello, I came across an error, when running the code:
_Traceback (most recent call last):
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1356, in _do_call
return fn(*args)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1341, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1429, in _call_tf_sessionrun
run_metadata)
InvalidArgumentError: indices[252,12] = 1073 is not in [0, 944)
[[{{node embedding_lookup_2}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Study\reproduction\LGRec\code\LGRec.py", line 518, in
_, model_loss = sess.run([train_step, train_model.loss], feed_dict)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 950, in run
run_metadata_ptr)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1173, in _run
feed_dict_tensor, options, run_metadata)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1350, in _do_run
run_metadata)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1370, in _do_call
raise type(e)(node_def, op, message)
InvalidArgumentError: indices[252,12] = 1073 is not in [0, 944)
[[node embedding_lookup_2 (defined at D:\Study\reproduction\LGRec\code\LGRec.py:224) ]]
Errors may have originated from an input operation.
Input Source operations connected to node embedding_lookup_2:
Placeholder_2 (defined at D:\Study\reproduction\LGRec\code\LGRec.py:178)
user_embedding/read (defined at D:\Study\reproduction\LGRec\code\LGRec.py:183)_
Could you please provide some advices on solving the problem?
mldl@ub1604:/ub16_prj/LGRec/code$ python LGRec.py/ub16_prj/LGRec/code$
Traceback (most recent call last):
File "LGRec.py", line 408, in
test_ratings, negative_ratings, user_pop, item_pop, user_neighbor, item_neighbor, relation_map_label = read_data(model_config.path)
File "LGRec.py", line 103, in read_data
with open(path + '.label') as infile:
IOError: [Errno 2] No such file or directory: '../data/ml-100k.label'
mldl@ub1604:
你号,运行代码时,我出现了如下错误:
_Traceback (most recent call last):
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1356, in _do_call
return fn(*args)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1341, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1429, in _call_tf_sessionrun
run_metadata)
InvalidArgumentError: indices[252,12] = 1073 is not in [0, 944)
[[{{node embedding_lookup_2}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Study\reproduction\LGRec\code\LGRec.py", line 518, in
_, model_loss = sess.run([train_step, train_model.loss], feed_dict)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 950, in run
run_metadata_ptr)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1173, in _run
feed_dict_tensor, options, run_metadata)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1350, in _do_run
run_metadata)
File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1370, in _do_call
raise type(e)(node_def, op, message)
InvalidArgumentError: indices[252,12] = 1073 is not in [0, 944)
[[node embedding_lookup_2 (defined at D:\Study\reproduction\LGRec\code\LGRec.py:224) ]]
Errors may have originated from an input operation.
Input Source operations connected to node embedding_lookup_2:
Placeholder_2 (defined at D:\Study\reproduction\LGRec\code\LGRec.py:178)
user_embedding/read (defined at D:\Study\reproduction\LGRec\code\LGRec.py:183)_
请问你知道如何解决吗?
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2018.2.5\helpers\pydev\pydevd.py", line 1664, in <module>
main()
File "C:\Program Files\JetBrains\PyCharm 2018.2.5\helpers\pydev\pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files\JetBrains\PyCharm 2018.2.5\helpers\pydev\pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2018.2.5\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/csdc01/PycharmProjects/LGRec/code/metapathGeneration.py", line 238, in <module>
metapathGeneration = MetapathGeneration(config)
File "C:/Users/csdc01/PycharmProjects/LGRec/code/metapathGeneration.py", line 31, in __init__
self.load_ua(uafile)
File "C:/Users/csdc01/PycharmProjects/LGRec/code/metapathGeneration.py", line 178, in load_ua
with open(uafile) as infile:
FileNotFoundError: [Errno 2] No such file or directory: '../data/ml-100k.ua'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.