Giter VIP home page Giter VIP logo

lgrec's Introduction

Hi there 👋



lgrec's People

Contributors

librahu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lgrec's Issues

missing yelp dataset

mldl@ub1604:/ub16_prj/LGRec/code$ python LGRec.py
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:
/ub16_prj/LGRec/code$

Index out of bounds

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.

datasets

hello
If I use Amazon datasets, how can I get the factors_u or item_neighbor_100 data about Amazon?

question about dataset?

the data is about ml-100, while input of LGRec.py is about Yelp? could you tell how to generate the dataset? Thanks!

InvalidArgumentError

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?

IOError: [Errno 2] No such file or directory: '../data/ml-100k.label'

mldl@ub1604:/ub16_prj/LGRec/code$ python LGRec.py
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:
/ub16_prj/LGRec/code$

InvalidArgumentError

你号,运行代码时,我出现了如下错误:
_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)_

请问你知道如何解决吗?

Missing data file

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.