Title: Three questions · Issue #55 · DeepGraphLearning/KnowledgeGraphEmbedding · GitHub
Open Graph Title: Three questions · Issue #55 · DeepGraphLearning/KnowledgeGraphEmbedding
X Title: Three questions · Issue #55 · DeepGraphLearning/KnowledgeGraphEmbedding
Description: Thank you for your work and I have three questions: Why do you use this method to calculate the initialization range? I didn't see the relevant introduction in your paper. What's the purpose of this method? self.embedding_range = nn.Para...
Open Graph Description: Thank you for your work and I have three questions: Why do you use this method to calculate the initialization range? I didn't see the relevant introduction in your paper. What's the purpose of thi...
X Description: Thank you for your work and I have three questions: Why do you use this method to calculate the initialization range? I didn't see the relevant introduction in your paper. What's the purpos...
Opengraph URL: https://github.com/DeepGraphLearning/KnowledgeGraphEmbedding/issues/55
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Three questions","articleBody":"Thank you for your work and I have three questions:\r\n1. Why do you use this method to calculate the initialization range? I didn't see the relevant introduction in your paper. What's the purpose of this method?\r\n\r\nself.embedding_range = nn.Parameter(\r\n torch.Tensor([(self.gamma.item() + self.epsilon) / hidden_dim]), \r\n requires_grad=False\r\n)\r\n\r\nself.entity_embedding = nn.Parameter(torch.zeros(nentity, self.entity_dim))\r\nnn.init.uniform_(\r\n tensor=self.entity_embedding, \r\n a=-self.embedding_range.item(), \r\n b=self.embedding_range.item()\r\n)\r\n\r\n2. This range is also used when pluralizing relationships. Why can this be done?\r\n\r\nphase_relation = relation/(self.embedding_range.item()/pi) \r\nre_relation = torch.cos(phase_relation) \r\nim_relation = torch.sin(phase_relation) \r\n\r\n3. In the rotate model, the calculations of head batch and tail batch are different in sign, but in the paper i can't find the head-batch part, i can't understand this part\r\n\r\nif mode == 'head-batch':\r\n re_score = re_relation * re_tail **+** im_relation * im_tail\r\n im_score = re_relation * im_tail **-** im_relation * re_tail\r\n re_score = re_score - re_head\r\n im_score = im_score - im_head\r\nelse:\r\n re_score = re_head * re_relation **-** im_head * im_relation\r\n im_score = re_head * im_relation **+** im_head * re_relation\r\n re_score = re_score - re_tail\r\n im_score = im_score - im_tail\r\n ","author":{"url":"https://github.com/zulihit","@type":"Person","name":"zulihit"},"datePublished":"2022-05-26T07:38:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/55/KnowledgeGraphEmbedding/issues/55"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8ab6b683-cbba-f378-4ecb-40d015d8a37c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A052:2EF69C:3D554E:54EFDD:697B4488 |
| html-safe-nonce | acd8748d24096f162fdb1f94925695eb1825fdea9fa18b5dc5f6294a2a9475f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDUyOjJFRjY5QzozRDU1NEU6NTRFRkREOjY5N0I0NDg4IiwidmlzaXRvcl9pZCI6Ijg4NzgzNjU3NTUzNDc1MTg2MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b92a39c87c32865bef1ff4a44ef3de82aed9e82d8aeb894095cdaf25ca5ad4c6 |
| hovercard-subject-tag | issue:1249214992 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DeepGraphLearning/KnowledgeGraphEmbedding/55/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e77cec9c6a324a959eb3ede3b388ea68499dc95fd154f086527e6e01d9b89940/DeepGraphLearning/KnowledgeGraphEmbedding/issues/55 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e77cec9c6a324a959eb3ede3b388ea68499dc95fd154f086527e6e01d9b89940/DeepGraphLearning/KnowledgeGraphEmbedding/issues/55 |
| og:image:alt | Thank you for your work and I have three questions: Why do you use this method to calculate the initialization range? I didn't see the relevant introduction in your paper. What's the purpose of thi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zulihit |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6fe64d94889230be19a900846cfc91707e7dd4206878d6c208922b46a6b0735d |
| turbo-cache-control | no-preview |
| go-import | github.com/DeepGraphLearning/KnowledgeGraphEmbedding git https://github.com/DeepGraphLearning/KnowledgeGraphEmbedding.git |
| octolytics-dimension-user_id | 38018154 |
| octolytics-dimension-user_login | DeepGraphLearning |
| octolytics-dimension-repository_id | 167231866 |
| octolytics-dimension-repository_nwo | DeepGraphLearning/KnowledgeGraphEmbedding |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 167231866 |
| octolytics-dimension-repository_network_root_nwo | DeepGraphLearning/KnowledgeGraphEmbedding |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 15736a47b83581130a149aa1b928696bea06adde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width