Code Monkey home page Code Monkey logo

faan's People

Contributors

jiaweisheng avatar

Stargazers

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

Watchers

 avatar  avatar

faan's Issues

how to use the pre-trained embedding?

i see you trained the node embedding by torch.Embedding() rather than from relation2vec.ComplEx
and i find that the relation in train_task.json is not contained in relation2id or relation2vec
it seem that the relation in relation2id, relation2vec and pre_trained embedding are same, but different with relations in train_task.json,
so my question is, is the pre-trained embedding used in this papper?
Anticipates your answer very much, thank you.

CUDA error

I got a CUDA error when I run trainer.py, anyone can help me figure it out?
Screen Shot 2021-10-17 at 5 15 11 PM

RuntimeError: stack expects a non-empty TensorList

Hi, I got this error:

Traceback (most recent call last):
File "trainer.py", line 434, in
trainer.train()
File "trainer.py", line 226, in train
nn.utils.clip_grad_norm(self.parameters, self.grad_clip)
File "/python3.6/site-packages/torch/nn/utils/clip_grad.py", line 47, in clip_grad_norm
return clip_grad_norm_(parameters, max_norm, norm_type)
File "/python3.6/site-packages/torch/nn/utils/clip_grad.py", line 30, in clip_grad_norm_
total_norm = torch.norm(torch.stack([torch.norm(p.grad.detach(), norm_type) for p in parameters]), norm_type)
RuntimeError: stack expects a non-empty TensorList

Embedding dimension settings

According to the code you provided, when training FAAN, you set the embedding dimension of NELL in the parameters to 100 and the embedding dimension of Wiki to 50, while the opposite is true in the paper.
"The embedding dimensionality is set to 50 and 100 for NELL and Wiki, respectively."

the method of limiting the candidate entities

Hello, Jiawei

Can you help me understand the method of limiting the candidate entities, in "One-Shot Relational Learning for Knowledge Graphs". Many people cited your paper, but they have not given a specific parameters.

How did you make specific restrictions in your experiment? Can you show your code for generating the candidate set?

Looking forward to your reply!

Some questions about the experimental results of Wiki dataset

When I run this code on several different servers, I find that the all results of Wiki dataset are about 3% lower than the result in the paper, but the result of NELL dataset is correct, and the random seed of both are 19950922 as the code. So I want know what's the problem. Look forward to your reply.

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.