Code Monkey home page Code Monkey logo

dgl-itemrec's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dgl-itemrec's Issues

File "pandas/_libs/hashtable_class_helper.pxi", line 993, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: 31

In your main_knn file,

when I'm running the code below, I get an error. Can you share how to fix it? Thank you.

HG = dgl.heterograph({
('user', 'um', 'movie'): (ratings_train['user_idx'], ratings_train['movie_idx']),
('movie', 'mu', 'user'): (ratings_train['movie_idx'], ratings_train['user_idx'])})

error:

Traceback (most recent call last):

File "", line 3, in
('movie', 'mu', 'user'): (ratings_train['movie_idx'], ratings_train['user_idx'])})

File "/home/hojun/anaconda3/envs/ai/lib/python3.6/site-packages/dgl/convert.py", line 309, in heterograph
u, v, urange, vrange = utils.graphdata2tensors(data, idtype, bipartite=is_bipartite)

File "/home/hojun/anaconda3/envs/ai/lib/python3.6/site-packages/dgl/utils/data.py", line 147, in graphdata2tensors
data = F.tensor(data[0]), F.tensor(data[1])

File "/home/hojun/anaconda3/envs/ai/lib/python3.6/site-packages/dgl/backend/pytorch/tensor.py", line 40, in tensor
return th.as_tensor(data, dtype=dtype)

File "/home/hojun/anaconda3/envs/ai/lib/python3.6/site-packages/pandas/core/series.py", line 868, in getitem
result = self.index.get_value(self, key)

File "/home/hojun/anaconda3/envs/ai/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 4375, in get_value
tz=getattr(series.dtype, 'tz', None))

File "pandas/_libs/index.pyx", line 81, in pandas._libs.index.IndexEngine.get_value

File "pandas/_libs/index.pyx", line 89, in pandas._libs.index.IndexEngine.get_value

File "pandas/_libs/index.pyx", line 132, in pandas._libs.index.IndexEngine.get_loc

File "pandas/_libs/hashtable_class_helper.pxi", line 987, in pandas._libs.hashtable.Int64HashTable.get_item

File "pandas/_libs/hashtable_class_helper.pxi", line 993, in pandas._libs.hashtable.Int64HashTable.get_item

KeyError: 31

Hi ! deprecated error occurs

Hi I'm reproducing your model what is very useful things at my field.

and then happen 2 errors here , I can't even take results for evaluation stage.

I wonder how resolve these errors that is occurs at movie-lens.py

  1. nlp = stanford isn't work now to me , stanford ->stanza ( change the library then work well )

  2. at last session , build the interacted_movies data

the error message as follows gotten to me

[pandas couldn't support one function espeically, Passing list-likes to .loc or [] with any missing labels is no longer supported. The following labels were missing: Int64Index([550972], dtype='int64'). See https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike"]

thank you !

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.