PGPR:推荐知识的增强知识图推理

上传者: 42097557 | 上传时间: 2022-09-23 23:44:15 | 文件大小: 63.58MB | 文件类型: ZIP
推荐知识的增强知识图推理 该存储库包含SIGIR 2019论文“” [2]的源代码。 数据集 “ data /”目录中有两个Amazon数据集(Amazon_Beauty,Amazon_Cellphones),并且拆分与[1]一致。 本文中使用的所有四个数据集都可以下载。 要求 Python> = 3.6 PyTorch = 1.0 如何运行代码 首先处理数据: python preprocess.py --dataset < dataset> “ ”应该是“ cd”,“ beauty”,“ cloth”,“ cell”之一(请参阅utils.py)。 训练知识图嵌入(在这种情况下为TransE): python train_transe_model.py --dataset < dataset> 训练RL代理商: pyth

文件下载

资源详情

[{"title":"( 38 个子文件 63.58MB ) PGPR:推荐知识的增强知识图推理","children":[{"title":"PGPR-master","children":[{"title":"knowledge_graph.py <span style='color:#111;'> 8.53KB </span>","children":null,"spread":false},{"title":"train_transe_model.py <span style='color:#111;'> 5.83KB </span>","children":null,"spread":false},{"title":"transe_model.py <span style='color:#111;'> 9.58KB </span>","children":null,"spread":false},{"title":"data_utils.py <span style='color:#111;'> 8.54KB </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 6.05KB </span>","children":null,"spread":false},{"title":"train_agent.py <span style='color:#111;'> 9.28KB </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 354B </span>","children":null,"spread":false},{"title":"test_agent.py <span style='color:#111;'> 9.90KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"Amazon_Beauty","children":[{"title":"product.txt.gz <span style='color:#111;'> 62.80KB </span>","children":null,"spread":false},{"title":"brand_p_b.txt.gz <span style='color:#111;'> 17.54KB </span>","children":null,"spread":false},{"title":"related_product.txt.gz <span style='color:#111;'> 870.72KB </span>","children":null,"spread":false},{"title":"bought_together_p_p.txt.gz <span style='color:#111;'> 22.50KB </span>","children":null,"spread":false},{"title":"test.txt.gz <span style='color:#111;'> 7.23MB </span>","children":null,"spread":false},{"title":"train.txt.gz <span style='color:#111;'> 21.29MB </span>","children":null,"spread":false},{"title":"category.txt.gz <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"brand.txt.gz <span style='color:#111;'> 13.29KB </span>","children":null,"spread":false},{"title":"users.txt.gz <span style='color:#111;'> 207.99KB </span>","children":null,"spread":false},{"title":"vocab.txt.gz <span style='color:#111;'> 84.84KB </span>","children":null,"spread":false},{"title":"also_bought_p_p.txt.gz <span style='color:#111;'> 2.11MB </span>","children":null,"spread":false},{"title":"also_viewed_p_p.txt.gz <span style='color:#111;'> 358.78KB </span>","children":null,"spread":false},{"title":"category_p_c.txt.gz <span style='color:#111;'> 21.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"Amazon_Cellphones","children":[{"title":"product.txt.gz <span style='color:#111;'> 55.80KB </span>","children":null,"spread":false},{"title":"brand_p_b.txt.gz <span style='color:#111;'> 8.75KB </span>","children":null,"spread":false},{"title":"related_product.txt.gz <span style='color:#111;'> 530.12KB </span>","children":null,"spread":false},{"title":"bought_together_p_p.txt.gz <span style='color:#111;'> 18.02KB </span>","children":null,"spread":false},{"title":"test.txt.gz <span style='color:#111;'> 6.83MB </span>","children":null,"spread":false},{"title":"train.txt.gz <span style='color:#111;'> 22.11MB </span>","children":null,"spread":false},{"title":"category.txt.gz <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"brand.txt.gz <span style='color:#111;'> 5.27KB </span>","children":null,"spread":false},{"title":"users.txt.gz <span style='color:#111;'> 259.22KB </span>","children":null,"spread":false},{"title":"vocab.txt.gz <span style='color:#111;'> 83.37KB </span>","children":null,"spread":false},{"title":"also_bought_p_p.txt.gz <span style='color:#111;'> 1.38MB </span>","children":null,"spread":false},{"title":"also_viewed_p_p.txt.gz <span style='color:#111;'> 31.16KB </span>","children":null,"spread":false},{"title":"category_p_c.txt.gz <span style='color:#111;'> 11.21KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"preprocess.py <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"kg_env.py <span style='color:#111;'> 11.16KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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