TransE系列源码

上传者: yqyzlh | 上传时间: 2021-04-12 15:18:00 | 文件大小: 9.25MB | 文件类型: ZIP
TranE是一篇Bordes等人2013年发表在NIPS上的文章提出的算法。它的提出,是为了解决多关系数据(multi-relational data)的处理问题。我们现在有很多很多的知识库数据knowledge bases (KBs),比如Freebase、 Google Knowledge Graph 、 GeneOntology等等。 TransE的直观含义,就是TransE基于实体和关系的分布式向量表示,将每个三元组实例(head,relation,tail)中的关系relation看做从实体head到实体tail的翻译(其实我一直很纳闷为什么叫做translating,其实就是向量相加),通过不断调整h、r和t(head、relation和tail的向量),使(h + r) 尽可能与 t 相等,即 h + r = t。 以前有很多种训练三元组的方法,但是参数过多,以至于模型过于复杂难以理解(作者表达的意思就是,我们的工作效果和你们一样,但我们的简单易扩展)。(ps:作者以前也做过类似的工作,叫做Structured Embeddings,简称SE,只是将实体转为向量,关系是一个矩阵,利用矩阵的不可逆性反映关系的不可逆性。距离表达公式是1-norm)。

文件下载

资源详情

[{"title":"( 39 个子文件 9.25MB ) TransE系列源码","children":[{"title":"KB2E-master","children":[{"title":"CTransR","children":[{"title":"Test_CTransR.cpp <span style='color:#111;'> 10.02KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 183B </span>","children":null,"spread":false},{"title":"Train_CTransR.cpp <span style='color:#111;'> 15.93KB </span>","children":null,"spread":false}],"spread":true},{"title":"cluster","children":[{"title":"generate.cpp <span style='color:#111;'> 3.28KB </span>","children":null,"spread":false},{"title":"apcluster.cpp <span style='color:#111;'> 10.70KB </span>","children":null,"spread":false},{"title":"prepare.cpp <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"run.sh <span style='color:#111;'> 110B </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 203B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":".DS_Store <span style='color:#111;'> 15.00KB </span>","children":null,"spread":false},{"title":"TransR","children":[{"title":"Train_TransR.cpp <span style='color:#111;'> 12.19KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 172B </span>","children":null,"spread":false},{"title":"Test_TransR.cpp <span style='color:#111;'> 9.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"PTransE","children":[{"title":"data","children":[{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"n2n.txt <span style='color:#111;'> 13.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"PTransE_mul","children":[{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"Train_TransE_path.cpp <span style='color:#111;'> 10.73KB </span>","children":null,"spread":false},{"title":"Test_TransE_path.cpp <span style='color:#111;'> 17.68KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":true},{"title":".DS_Store <span style='color:#111;'> 15.00KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"PTransE_add","children":[{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"Train_TransE_path.cpp <span style='color:#111;'> 10.63KB </span>","children":null,"spread":false},{"title":"Test_TransE_path.cpp <span style='color:#111;'> 17.66KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":true},{"title":"PCRA.py <span style='color:#111;'> 6.44KB </span>","children":null,"spread":false},{"title":"PTransE_RNN","children":[{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"Train_TransE_path.cpp <span style='color:#111;'> 13.20KB </span>","children":null,"spread":false},{"title":"Test_TransE_path.cpp <span style='color:#111;'> 18.76KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":false},{"title":"makefile <span style='color:#111;'> 72B </span>","children":null,"spread":false}],"spread":true},{"title":"makefile <span style='color:#111;'> 72B </span>","children":null,"spread":false},{"title":"TransE","children":[{"title":"Test_TransE.cpp <span style='color:#111;'> 7.98KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 172B </span>","children":null,"spread":false},{"title":"Train_TransE.cpp <span style='color:#111;'> 9.08KB </span>","children":null,"spread":false}],"spread":true},{"title":"data.zip <span style='color:#111;'> 9.19MB </span>","children":null,"spread":false},{"title":"TransH","children":[{"title":"Train_TransH.cpp <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 91B </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • qq_41204638 :
    运行的时候pca老是报错怎么办
    2019-04-30
  • 杉莘 :
    运行的时候pca老是报错怎么办
    2019-04-30
  • zouxiong122 :
    编译出错,改一下就好了
    2019-03-03
  • rookieSquads :
    编译出错,改一下就好了
    2019-03-03

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明