Giter Site home page Giter Site logo

About dataset about rgtn-nie HOT 3 CLOSED

graph-0 avatar graph-0 commented on June 24, 2024
About dataset

from rgtn-nie.

Comments (3)

GRAPH-0 avatar GRAPH-0 commented on June 24, 2024

Hi @Syzseisus .
Thanks for your interest!
We extract node structural features using the node2vec and node semantic features using Transformer-XL.
Refer to Paper:
image

from rgtn-nie.

Syzseisus avatar Syzseisus commented on June 24, 2024

Thank you for your quick response.

I've already reviewed the provided resources.
However, I'm interested in obtaining a detailed understanding of the configuration settings for
node2vec and Transformer-XL models.
Could you please provide me with the specific parameters or something?

ALTERNATIVELY, for FB15k, I would appreciate it if you could confirm whether the order of nodes in the pickle file provided in Google Drive is the same as in the dgl.
If you are unsure, please let me know the order
or you can check it by following these steps:

  1. For the order of nodes used in dgl, you can access the raw tgz file from here
    and find the order in the entities.dict file.
  2. However, please note that 0dgl uses the node entity name as a hash.
    To find the real names of the nodes, you can refer to the entities2wikidata.json file.

Thank you for your assistance.

Sincerely,
Wooseong Cho.

from rgtn-nie.

GRAPH-0 avatar GRAPH-0 commented on June 24, 2024

Hi,

  1. For node embedding, you can refer to #3 and #6.

The node2vec settings:

  • FB and tmdb:
model = Node2Vec(data.edge_index, embedding_dim=64, walk_length=20,
                     context_size=10, walks_per_node=10, num_negative_samples=1,
                     p=1, q=1, sparse=True).cuda()
loader = model.loader(batch_size=128, shuffle=True, num_workers=4)
optimizer = torch.optim.SparseAdam(list(model.parameters()), lr=0.01)
  • imdb:
model = Node2Vec(data.edge_index, embedding_dim=128, walk_length=20,
                     context_size=10, walks_per_node=10, num_negative_samples=1,
                     p=1, q=1, sparse=True).cuda()
  1. Sorry, I fail to open the tgz file from dgl to check the order. But you can get the correspondence between node id and mid from datasets/FB15k/fb15k_description.tsv. I think this can help you!

Sincerely,
Han

from rgtn-nie.

Related Issues (10)

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.